Fixed caching issue when running tests

This commit is contained in:
Dan Brown 2023-02-26 10:50:14 +00:00
parent ba21b54195
commit c7e33d1981
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9

View 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;