Call the asset factory directly

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-04-26 15:44:37 +01:00
parent bd8737d986
commit 2d112f227a

View file

@ -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);