fix assertSent to AssertNotSent on some test

This commit is contained in:
Godfrey M 2024-10-17 13:39:56 -07:00
parent cdd4fef7df
commit 83e8186d9e
3 changed files with 3 additions and 3 deletions

View file

@ -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);
});
}

View file

@ -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);
});
}

View file

@ -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);
});
}