Skip to content

A free open source IT asset/license management system

Run pint on test

Marcus Moore1bdf205ca67e
diff --git a/tests/Feature/Console/Commands/PurgeEulaPDFTest.php b/tests/Feature/Console/Commands/PurgeEulaPDFTest.php
index b49cc00c27..0865eeb11e 100644
--- a/tests/Feature/Console/Commands/PurgeEulaPDFTest.php
+++ b/tests/Feature/Console/Commands/PurgeEulaPDFTest.php
@@ -3,11 +3,11 @@
namespace Feature\Console\Commands;
use App\Models\Asset;
-use Tests\TestCase;
use App\Models\CheckoutAcceptance;
use App\Models\Company;
use App\Models\User;
use Storage;
+use Tests\TestCase;
class PurgeEulaPDFTest extends TestCase
{
@@ -77,7 +77,7 @@ class PurgeEulaPDFTest extends TestCase
]);
$targetAcceptance = CheckoutAcceptance::factory()->create([
- 'checkoutable_type' => \App\Models\Asset::class,
+ 'checkoutable_type' => Asset::class,
'checkoutable_id' => $targetAsset->id,
'assigned_to_id' => $userInTargetCompany->id,
'signature_filename' => 'target-signature.png',
@@ -86,7 +86,7 @@ class PurgeEulaPDFTest extends TestCase
]);
$otherAcceptance = CheckoutAcceptance::factory()->create([
- 'checkoutable_type' => \App\Models\Asset::class,
+ 'checkoutable_type' => Asset::class,
'checkoutable_id' => $otherAsset->id,
'assigned_to_id' => $userInOtherCompany->id,
'signature_filename' => 'other-signature.png',
@@ -178,7 +178,6 @@ class PurgeEulaPDFTest extends TestCase
'updated_at' => $intervalDate->copy()->subDay(),
]);
-
$this->artisan('snipeit:purge-eula-pdfs', [
'--older-than-days' => 0,
'--company-id' => $targetCompany->id,
@@ -233,4 +232,4 @@ class PurgeEulaPDFTest extends TestCase
'id' => $recentAcceptance->id,
]);
}
-}
\ No newline at end of file
+}