From da4ec145d764cdbcc4557e0af74f9ede8157312a Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 24 Jul 2024 20:17:30 +0100 Subject: [PATCH] Removed test no longer needed due to validation Signed-off-by: snipe --- tests/Feature/Licenses/Ui/LicenseViewTest.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/Feature/Licenses/Ui/LicenseViewTest.php b/tests/Feature/Licenses/Ui/LicenseViewTest.php index 295b23c5f0..3b1f7830d4 100644 --- a/tests/Feature/Licenses/Ui/LicenseViewTest.php +++ b/tests/Feature/Licenses/Ui/LicenseViewTest.php @@ -16,17 +16,7 @@ class LicenseViewTest extends TestCase ->get(route('licenses.show', $license)) ->assertForbidden(); } - - - public function testLicenseWithNoPurchaseDateDoesNotTriggerDepreciation() - { - $depreciation = Depreciation::factory()->create(['months' => 12]); - $license = License::factory()->create(['depreciation_id' => $depreciation->id, 'purchase_date' => null]); - $this->actingAs(User::factory()->superuser()->create()) - ->get(route('licenses.show', $license)) - ->assertOk(); - } - + public function testLicenseWithPurchaseDateDepreciatesCorrectly() { $depreciation = Depreciation::factory()->create(['months' => 12]);