Removed MBP constraint on model

This was creating a validation error since the name already exists

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-16 10:35:42 +01:00
parent a79fe69bf4
commit e8deecc9b4

View file

@ -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()