A free open source IT asset/license management system
Fixed test for checkin
snipe87de67e4a96c
diff --git a/tests/Feature/Api/Assets/AssetIndexTest.php b/tests/Feature/Api/Assets/AssetIndexTest.phpindex 2c6f26071f..961ba7f4b3 100644--- a/tests/Feature/Api/Assets/AssetIndexTest.php+++ b/tests/Feature/Api/Assets/AssetIndexTest.php@@ -68,7 +68,7 @@ class AssetIndexTest extends TestCasepublic function testAssetApiIndexReturnsDueForExpectedCheckin(){- Asset::factory()->count(3)->create(['expected_checkin' => Carbon::now()->format('Y-m-d')]);+ Asset::factory()->count(3)->create(['assigned_to' => '1', 'expected_checkin' => Carbon::now()->format('Y-m-d')]);$this->assertTrue(Asset::count() === 3);@@ -86,7 +86,7 @@ class AssetIndexTest extends TestCasepublic function testAssetApiIndexReturnsOverdueForExpectedCheckin(){- Asset::factory()->count(3)->create(['expected_checkin' => Carbon::now()->subDays(1)->format('Y-m-d')]);+ Asset::factory()->count(3)->create(['assigned_to' => '1', 'expected_checkin' => Carbon::now()->subDays(1)->format('Y-m-d')]);$this->assertTrue(Asset::count() === 3);