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;