Fix test by passing proper user
This commit is contained in:
parent
e8da6d8bac
commit
bc54144284
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ class NotificationTest extends BaseTest
|
|||
|
||||
public function testAUserIsEmailedIfTheyCheckoutAnAssetWithEULA()
|
||||
{
|
||||
$admin = User::factory()->superuser()->create();
|
||||
$user = User::factory()->create();
|
||||
$asset = Asset::factory()
|
||||
->create(
|
||||
|
@ -35,7 +36,7 @@ class NotificationTest extends BaseTest
|
|||
]);
|
||||
|
||||
Notification::fake();
|
||||
$asset->checkOut($user, $asset->id);
|
||||
$asset->checkOut($user, $admin->id);
|
||||
Notification::assertSentTo($user, CheckoutAssetNotification::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue