Skip to content

A free open source IT asset/license management system

Call the asset factory directly

snipe2d112f227a87
diff --git a/tests/Feature/Api/Assets/AssetIndexTest.php b/tests/Feature/Api/Assets/AssetIndexTest.php
index 3aa90840eb..f949f02487 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);