]> BookStack Code Mirror - bookstack/commitdiff
Fixed caching issue when running tests
authorDan Brown <redacted>
Sun, 26 Feb 2023 10:50:14 +0000 (10:50 +0000)
committerDan Brown <redacted>
Sun, 26 Feb 2023 10:50:14 +0000 (10:50 +0000)
tests/Helpers/UserRoleProvider.php

index a06112189dcbc50ccba3fbe405ab4f25318d8436..8c2718bc3e2831ef37663df41d7641a3c2ac3d2f 100644 (file)
@@ -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;