Skip to content

Commit b529953

Browse files
committed
fix: unit test
1 parent 24f9a7f commit b529953

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/src/Admin/Auth/LoginTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$this->assertGuest();
2121

2222
$userToAuthenticate = User::factory()->create();
23-
$userToAuthenticate->assignRole(config('shopper.core.users.admin_role'));
23+
$userToAuthenticate->assignRole(config('shopper.core.roles.admin'));
2424

2525
Livewire::test(Login::class)
2626
->set('email', $userToAuthenticate->email)

tests/src/TestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ protected function asAdmin(): TestCase
9292
protected function makeAdminUser(): User
9393
{
9494
$admin = User::factory()->create();
95-
96-
$admin->assignRole(config('shopper.core.users.admin_role'));
95+
$admin->assignRole(config('shopper.core.roles.admin'));
9796

9897
return $admin;
9998
}

0 commit comments

Comments
 (0)