mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fix relationship
This commit is contained in:
parent
70aed45bfe
commit
4e7c6bd2cf
|
@ -55,13 +55,13 @@ class AssetAcceptanceReminderTest extends TestCase
|
|||
|
||||
public function testUserWithoutEmailAddressHandledGracefully()
|
||||
{
|
||||
$userWithoutEmailAddress = User::factory()->create(['email' => null]);
|
||||
|
||||
$this->checkoutAcceptance->assigned_to_id = $userWithoutEmailAddress->id;
|
||||
$this->checkoutAcceptance->save();
|
||||
$checkoutAcceptance = CheckoutAcceptance::factory()
|
||||
->pending()
|
||||
->forAssignedTo(['email' => null])
|
||||
->create();
|
||||
|
||||
$this->actingAs($this->actor)
|
||||
->post($this->routeFor($this->checkoutAcceptance))
|
||||
->post($this->routeFor($checkoutAcceptance))
|
||||
// check we didn't crash...
|
||||
->assertRedirect();
|
||||
|
||||
|
|
Loading…
Reference in a new issue