From e8deecc9b4d9c0560ebea2cd7f41271839829444 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 16 Aug 2024 10:35:42 +0100 Subject: [PATCH] Removed MBP constraint on model This was creating a validation error since the name already exists Signed-off-by: snipe --- tests/Unit/DepreciationTest.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/Unit/DepreciationTest.php b/tests/Unit/DepreciationTest.php index e07edc6be..c170ac0e1 100644 --- a/tests/Unit/DepreciationTest.php +++ b/tests/Unit/DepreciationTest.php @@ -17,15 +17,13 @@ class DepreciationTest extends TestCase $depreciation = Depreciation::factory()->create(); AssetModel::factory() - ->mbp13Model() ->count(5) ->create( [ 'category_id' => Category::factory()->assetLaptopCategory()->create(), 'depreciation_id' => $depreciation->id ]); - - + $this->assertEquals(5, $depreciation->models->count()); } public function testDepreciationAmount()