mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-13 17:14:10 -08:00
fix assertSent to AssertNotSent on some test
This commit is contained in:
parent
cdd4fef7df
commit
83e8186d9e
|
@ -159,7 +159,7 @@ class AccessoryCheckoutTest extends TestCase implements TestsPermissionsRequirem
|
|||
'checkout_to_type' => 'user',
|
||||
]);
|
||||
|
||||
Mail::assertSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
|
||||
return $mail->hasTo($user) && $mail->contains($accessory);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -170,7 +170,7 @@ class AccessoryCheckoutTest extends TestCase
|
|||
'checkout_to_type' => 'user',
|
||||
]);
|
||||
|
||||
Mail::assertSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
|
||||
return $mail->hasTo($user->email) && $mail->accessory->is($accessory);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ class ConsumableCheckoutTest extends TestCase
|
|||
'assigned_to' => $user->id,
|
||||
]);
|
||||
|
||||
Mail::assertSent(CheckoutConsumableMail::class, function ($mail) use ($consumable, $user) {
|
||||
Mail::assertNotSent(CheckoutConsumableMail::class, function ($mail) use ($consumable, $user) {
|
||||
return $mail->hasTo($user->email) && $mail->consumable->is($consumable);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue