Skip to content

A free open source IT asset/license management system

Scaffold additional tests

Marcus Moore852b0b3f11c1
diff --git a/tests/Feature/Api/Assets/AssetCheckinTest.php b/tests/Feature/Api/Assets/AssetCheckinTest.php
index f71191d80c..7e5098bcef 100644
--- a/tests/Feature/Api/Assets/AssetCheckinTest.php
+++ b/tests/Feature/Api/Assets/AssetCheckinTest.php
@@ -11,6 +11,36 @@ class AssetCheckinTest extends TestCase
{
use InteractsWithSettings;
+ public function testCheckingInAssetRequiresCorrectPermission()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testAssetCheckedOutToAssetCanBeCheckedIn()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testAssetCheckedOutToLocationCanBeCheckedIn()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testAssetCheckedOutToUserCanBeCheckedIn()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testCheckInEmailSentToUserIfSettingEnabled()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testCheckInEmailNotSentToUserIfSettingDisabled()
+ {
+ $this->markTestIncomplete();
+ }
+
public function testLastCheckInFieldIsSetOnCheckin()
{
$admin = User::factory()->superuser()->create();
diff --git a/tests/Feature/Checkins/AssetCheckinTest.php b/tests/Feature/Checkins/AssetCheckinTest.php
index d43cdfb24f..92a8c29615 100644
--- a/tests/Feature/Checkins/AssetCheckinTest.php
+++ b/tests/Feature/Checkins/AssetCheckinTest.php
@@ -24,13 +24,23 @@ class AssetCheckinTest extends TestCase
->assertForbidden();
}
- public function testAssetCanBeCheckedIn()
+ public function testAssetCheckedOutToAssetCanBeCheckedIn()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testAssetCheckedOutToLocationCanBeCheckedIn()
+ {
+ $this->markTestIncomplete();
+ }
+
+ public function testAssetCheckedOutToUserCanBeCheckedIn()
{
Event::fake([CheckoutableCheckedIn::class]);
$admin = User::factory()->checkinAssets()->create();
$user = User::factory()->create();
- $asset = Asset::factory()->assignedToUser($user)->create(['last_checkin' => null]);
+ $asset = Asset::factory()->assignedToUser($user)->create();
$this->assertTrue($asset->assignedTo->is($user));