]> BookStack Code Mirror - bookstack/commitdiff
Merge pull request #3986 from BookStackApp/permission_testing
authorDan Brown <redacted>
Tue, 24 Jan 2023 21:37:28 +0000 (21:37 +0000)
committerGitHub <redacted>
Tue, 24 Jan 2023 21:37:28 +0000 (21:37 +0000)
Permission Testing & Alignment

1  2 
tests/Entity/ExportTest.php
tests/Entity/PageContentTest.php
tests/TestCase.php

Simple merge
Simple merge
index d9a614fc6d7c8bc09f6f88cb9b7ba07ef31724ce,a5d75655cb577dfb0eff09bff07d2c15e96e7f92..9e4b1df419e5a3e9cbe158716f0ac2a2faf93344
@@@ -42,11 -40,10 +40,14 @@@ abstract class TestCase extends BaseTes
      protected function setUp(): void
      {
          $this->entities = new EntityProvider();
+         $this->users = new UserRoleProvider();
+         $this->permissions = new PermissionsProvider($this->users);
          parent::setUp();
 +
 +        // We can uncomment the below to run tests with failings upon deprecations.
 +        // Can't leave on since some deprecations can only be fixed upstream.
 +         // $this->withoutDeprecationHandling();
      }
  
      /**