mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Call the asset factory directly
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
bd8737d986
commit
2d112f227a
|
@ -32,9 +32,7 @@ class AssetIndexTest extends TestCase
|
||||||
|
|
||||||
public function testAssetApiIndexReturnsDisplayUpcomingAuditsDueToday()
|
public function testAssetApiIndexReturnsDisplayUpcomingAuditsDueToday()
|
||||||
{
|
{
|
||||||
$assets = Asset::factory()->count(3)->create(['next_audit_date' => Carbon::now()->format('Y-m-d')]);
|
Asset::factory()->count(3)->create(['next_audit_date' => Carbon::now()->format('Y-m-d')]);
|
||||||
|
|
||||||
//dd($assets);
|
|
||||||
|
|
||||||
$this->assertTrue(Asset::count() === 3);
|
$this->assertTrue(Asset::count() === 3);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue