We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24f9a7f commit b529953Copy full SHA for b529953
tests/src/Admin/Auth/LoginTest.php
@@ -20,7 +20,7 @@
20
$this->assertGuest();
21
22
$userToAuthenticate = User::factory()->create();
23
- $userToAuthenticate->assignRole(config('shopper.core.users.admin_role'));
+ $userToAuthenticate->assignRole(config('shopper.core.roles.admin'));
24
25
Livewire::test(Login::class)
26
->set('email', $userToAuthenticate->email)
tests/src/TestCase.php
@@ -92,8 +92,7 @@ protected function asAdmin(): TestCase
92
protected function makeAdminUser(): User
93
{
94
$admin = User::factory()->create();
95
-
96
- $admin->assignRole(config('shopper.core.users.admin_role'));
+ $admin->assignRole(config('shopper.core.roles.admin'));
97
98
return $admin;
99
}
0 commit comments