mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Remove duplicate test
This commit is contained in:
parent
d7aed2edc9
commit
02f39472f9
|
@ -113,19 +113,6 @@ class AssetCheckinTest extends TestCase
|
||||||
$this->assertTrue($asset->refresh()->defaultLoc()->is($location));
|
$this->assertTrue($asset->refresh()->defaultLoc()->is($location));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testLastCheckInFieldIsSetOnCheckin()
|
|
||||||
{
|
|
||||||
$admin = User::factory()->checkinAssets()->create();
|
|
||||||
$asset = Asset::factory()->assignedToUser()->create(['last_checkin' => null]);
|
|
||||||
|
|
||||||
$this->actingAs($admin)->post(route('hardware.checkin.store', ['assetId' => $asset->id]));
|
|
||||||
|
|
||||||
$this->assertNotNull(
|
|
||||||
$asset->refresh()->last_checkin,
|
|
||||||
'last_checkin field should be set on checkin'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testAssetsLicenseSeatsAreClearedUponCheckin()
|
public function testAssetsLicenseSeatsAreClearedUponCheckin()
|
||||||
{
|
{
|
||||||
$asset = Asset::factory()->assignedToUser()->create();
|
$asset = Asset::factory()->assignedToUser()->create();
|
||||||
|
|
Loading…
Reference in a new issue