From: Dan Brown Date: Tue, 24 Jan 2023 21:37:28 +0000 (+0000) Subject: Merge pull request #3986 from BookStackApp/permission_testing X-Git-Tag: v23.01~1^2~13 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/0f113ec41f328eab6af78097d47c28d9cb99d893 Merge pull request #3986 from BookStackApp/permission_testing Permission Testing & Alignment --- 0f113ec41f328eab6af78097d47c28d9cb99d893 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(); } /**