From 2d112f227a87b39a935d866b46bcc9dd89a6c906 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 26 Apr 2024 15:44:37 +0100 Subject: [PATCH] Call the asset factory directly Signed-off-by: snipe --- tests/Feature/Api/Assets/AssetIndexTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Feature/Api/Assets/AssetIndexTest.php b/tests/Feature/Api/Assets/AssetIndexTest.php index 3aa90840e..f949f0248 100644 --- a/tests/Feature/Api/Assets/AssetIndexTest.php +++ b/tests/Feature/Api/Assets/AssetIndexTest.php @@ -32,9 +32,7 @@ class AssetIndexTest extends TestCase public function testAssetApiIndexReturnsDisplayUpcomingAuditsDueToday() { - $assets = Asset::factory()->count(3)->create(['next_audit_date' => Carbon::now()->format('Y-m-d')]); - - //dd($assets); + Asset::factory()->count(3)->create(['next_audit_date' => Carbon::now()->format('Y-m-d')]); $this->assertTrue(Asset::count() === 3);