fix assertSent to AssertNotSent on some test
This commit is contained in:
parent
cdd4fef7df
commit
83e8186d9e
3 changed files with 3 additions and 3 deletions
|
@ -159,7 +159,7 @@ class AccessoryCheckoutTest extends TestCase implements TestsPermissionsRequirem
|
||||||
'checkout_to_type' => 'user',
|
'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);
|
return $mail->hasTo($user) && $mail->contains($accessory);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,7 +170,7 @@ class AccessoryCheckoutTest extends TestCase
|
||||||
'checkout_to_type' => 'user',
|
'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);
|
return $mail->hasTo($user->email) && $mail->accessory->is($accessory);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,7 @@ class ConsumableCheckoutTest extends TestCase
|
||||||
'assigned_to' => $user->id,
|
'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);
|
return $mail->hasTo($user->email) && $mail->consumable->is($consumable);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue