mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
remove viewdata array from 3 tests
This commit is contained in:
parent
b98058ca98
commit
7ae76e7db9
|
@ -159,8 +159,8 @@ class AccessoryCheckoutTest extends TestCase implements TestsPermissionsRequirem
|
|||
'checkout_to_type' => 'user',
|
||||
]);
|
||||
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
|
||||
return $mail->hasTo($user->email) && $mail->viewData['accessory']->id === $accessory->id;
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
|
||||
return $mail->hasTo($user->email);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -170,8 +170,8 @@ class AccessoryCheckoutTest extends TestCase
|
|||
'checkout_to_type' => 'user',
|
||||
]);
|
||||
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) {
|
||||
return $mail->hasTo($user->email) && $mail->viewData['accessory']->is($accessory);
|
||||
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
|
||||
return $mail->hasTo($user->email);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -65,8 +65,8 @@ class ConsumableCheckoutTest extends TestCase
|
|||
'assigned_to' => $user->id,
|
||||
]);
|
||||
|
||||
Mail::assertNotSent(CheckoutConsumableMail::class, function ($mail) use ($consumable, $user) {
|
||||
return $mail->hasTo($user->email) && $mail->viewData['consumable']->is($consumable);
|
||||
Mail::assertNotSent(CheckoutConsumableMail::class, function ($mail) use ($user) {
|
||||
return $mail->hasTo($user->email);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue