remove viewdata array from 3 tests

This commit is contained in:
Godfrey M 2024-10-17 13:55:03 -07:00
parent b98058ca98
commit 7ae76e7db9
3 changed files with 6 additions and 6 deletions

View file

@ -159,8 +159,8 @@ class AccessoryCheckoutTest extends TestCase implements TestsPermissionsRequirem
'checkout_to_type' => 'user', 'checkout_to_type' => 'user',
]); ]);
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) { Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
return $mail->hasTo($user->email) && $mail->viewData['accessory']->id === $accessory->id; return $mail->hasTo($user->email);
}); });
} }

View file

@ -170,8 +170,8 @@ class AccessoryCheckoutTest extends TestCase
'checkout_to_type' => 'user', 'checkout_to_type' => 'user',
]); ]);
Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($accessory, $user) { Mail::assertNotSent(CheckoutAccessoryMail::class, function ($mail) use ($user) {
return $mail->hasTo($user->email) && $mail->viewData['accessory']->is($accessory); return $mail->hasTo($user->email);
}); });
} }

View file

@ -65,8 +65,8 @@ class ConsumableCheckoutTest extends TestCase
'assigned_to' => $user->id, 'assigned_to' => $user->id,
]); ]);
Mail::assertNotSent(CheckoutConsumableMail::class, function ($mail) use ($consumable, $user) { Mail::assertNotSent(CheckoutConsumableMail::class, function ($mail) use ($user) {
return $mail->hasTo($user->email) && $mail->viewData['consumable']->is($consumable); return $mail->hasTo($user->email);
}); });
} }