mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Removed test no longer needed due to validation
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ef145e47b4
commit
da4ec145d7
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue