mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -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))
|
->get(route('licenses.show', $license))
|
||||||
->assertForbidden();
|
->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()
|
public function testLicenseWithPurchaseDateDepreciatesCorrectly()
|
||||||
{
|
{
|
||||||
$depreciation = Depreciation::factory()->create(['months' => 12]);
|
$depreciation = Depreciation::factory()->create(['months' => 12]);
|
||||||
|
|
Loading…
Reference in a new issue