A free open source IT asset/license management system
Set purchase date in correct format
Marcus Mooree8da6d8bacd8
diff --git a/tests/Unit/NotificationTest.php b/tests/Unit/NotificationTest.phpindex 509aee6845..b44284a5ab 100644--- a/tests/Unit/NotificationTest.php+++ b/tests/Unit/NotificationTest.php@@ -20,7 +20,6 @@ class NotificationTest extends BaseTestpublic function testAUserIsEmailedIfTheyCheckoutAnAssetWithEULA(){-$user = User::factory()->create();$asset = Asset::factory()->create(@@ -30,12 +29,11 @@ class NotificationTest extends BaseTest['category_id' => Category::factory()->assetLaptopCategory()->id]- )->id,+ )->id,'warranty_months' => 24,- 'purchase_date' => Carbon::createFromDate(2017, 1, 1)->hour(0)->minute(0)->second(0)+ 'purchase_date' => Carbon::createFromDate(2017, 1, 1)->hour(0)->minute(0)->second(0)->format('Y-m-d')]);- //dd($asset);Notification::fake();$asset->checkOut($user, $asset->id);Notification::assertSentTo($user, CheckoutAssetNotification::class);