From: Dan Brown Date: Sun, 26 Feb 2023 10:50:14 +0000 (+0000) Subject: Fixed caching issue when running tests X-Git-Tag: v23.02~1^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/c7e33d198151d0468b693831e28551bd2c8e8c66 Fixed caching issue when running tests --- diff --git a/tests/Helpers/UserRoleProvider.php b/tests/Helpers/UserRoleProvider.php index a06112189..8c2718bc3 100644 --- a/tests/Helpers/UserRoleProvider.php +++ b/tests/Helpers/UserRoleProvider.php @@ -18,7 +18,7 @@ class UserRoleProvider { if (is_null($this->admin)) { $adminRole = Role::getSystemRole('admin'); - $this->admin = $adminRole->users->first(); + $this->admin = $adminRole->users()->first(); } return $this->admin;