Added assertion for success in test
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
c59e9770b7
commit
5beb0bf534
1 changed files with 3 additions and 1 deletions
|
@ -24,9 +24,11 @@ class AuditAssetTest extends TestCase
|
|||
|
||||
public function testAssetCanBeAudited()
|
||||
{
|
||||
$this->actingAs(User::factory()->auditAssets()->create())
|
||||
$response = $this->actingAs(User::factory()->auditAssets()->create())
|
||||
->post(route('asset.audit.store', Asset::factory()->create()))
|
||||
->assertStatus(302)
|
||||
->assertRedirect(route('assets.audit.due'));
|
||||
|
||||
$this->followRedirects($response)->assertSee('success');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue