Skip to content

NOW MANAGED ON CODEBERG

Merge pull request #3986 from BookStackApp/permission_testing

Dan Brown0f113ec41f32
diff --cc tests/TestCase.php
index d9a614fc6,a5d75655c..9e4b1df41
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@@ -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();
}
/**