Improve assertions
This commit is contained in:
parent
dbfa952a69
commit
aed798800c
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ class AssetAcceptanceTest extends TestCase
|
||||||
->assertRedirectToRoute('account.accept')
|
->assertRedirectToRoute('account.accept')
|
||||||
->assertSessionHas('success');
|
->assertSessionHas('success');
|
||||||
|
|
||||||
$this->assertFalse($checkoutAcceptance->fresh()->isPending());
|
$checkoutAcceptance->refresh();
|
||||||
|
|
||||||
|
$this->assertFalse($checkoutAcceptance->isPending());
|
||||||
|
$this->assertNotNull($checkoutAcceptance->accepted_at);
|
||||||
|
$this->assertNull($checkoutAcceptance->declined_at);
|
||||||
|
|
||||||
Event::assertDispatched(CheckoutAccepted::class);
|
Event::assertDispatched(CheckoutAccepted::class);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue