Removed test no longer needed due to validation

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-24 20:17:30 +01:00
parent ef145e47b4
commit da4ec145d7

View file

@ -17,16 +17,6 @@ class LicenseViewTest extends TestCase
->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]);