A free open source IT asset/license management system
Fix test case
Marcus Moore2bf2d55c6e4b
diff --git a/tests/Feature/Assets/Ui/AuditAssetTest.php b/tests/Feature/Assets/Ui/AuditAssetTest.phpindex 0a7bbdce1a..f746248cd1 100644--- a/tests/Feature/Assets/Ui/AuditAssetTest.php+++ b/tests/Feature/Assets/Ui/AuditAssetTest.php@@ -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();diff --git a/tests/Feature/Assets/Ui/CloneAssetTest.php b/tests/Feature/Assets/Ui/CloneAssetTest.phpindex 7989d008b5..47a7df6e0e 100644--- a/tests/Feature/Assets/Ui/CloneAssetTest.php+++ b/tests/Feature/Assets/Ui/CloneAssetTest.php@@ -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())