From 87de67e4a96cd61e1ccb23a68951f36226efe8b8 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 26 Apr 2024 19:06:26 +0100 Subject: [PATCH] Fixed test for checkin Signed-off-by: snipe --- tests/Feature/Api/Assets/AssetIndexTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Feature/Api/Assets/AssetIndexTest.php b/tests/Feature/Api/Assets/AssetIndexTest.php index 2c6f26071f..961ba7f4b3 100644 --- a/tests/Feature/Api/Assets/AssetIndexTest.php +++ b/tests/Feature/Api/Assets/AssetIndexTest.php @@ -68,7 +68,7 @@ class AssetIndexTest extends TestCase public 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 TestCase public 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);