Fix test case
This commit is contained in:
@@ -8,11 +8,9 @@ use Tests\TestCase;
|
||||
|
||||
class AuditAssetTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateAssetModel()
|
||||
public function test_permission_required_to_see_audit_page()
|
||||
{
|
||||
$this->actingAs(User::factory()->create())
|
||||
->get(route('clone/hardware', Asset::factory()->create()))
|
||||
->assertForbidden();
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function testPageCanBeAccessed(): void
|
||||
@@ -22,6 +20,11 @@ class AuditAssetTest extends TestCase
|
||||
->assertStatus(200);
|
||||
}
|
||||
|
||||
public function test_asset_can_be_audited()
|
||||
{
|
||||
$this->markTestIncomplete();
|
||||
}
|
||||
|
||||
public function testAssetAuditPostIsRedirectedToAssetIndexIfRedirectSelectionIsIndex()
|
||||
{
|
||||
$asset = Asset::factory()->create();
|
||||
|
||||
@@ -8,7 +8,7 @@ use Tests\TestCase;
|
||||
|
||||
class CloneAssetTest extends TestCase
|
||||
{
|
||||
public function testPermissionRequiredToCreateAssetModel()
|
||||
public function testPermissionRequiredToCreateCloneAsset()
|
||||
{
|
||||
$asset = Asset::factory()->create();
|
||||
$this->actingAs(User::factory()->create())
|
||||
|
||||
Reference in New Issue
Block a user