Skip to content

A free open source IT asset/license management system

Think I hit _all_ of the tests we need to mess with here

Brady Wetherington58759acfe43f
diff --git a/tests/Feature/Importing/Api/ImportAssetsTest.php b/tests/Feature/Importing/Api/ImportAssetsTest.php
index 0f54b22e92..a2231766c5 100644
--- a/tests/Feature/Importing/Api/ImportAssetsTest.php
+++ b/tests/Feature/Importing/Api/ImportAssetsTest.php
@@ -89,6 +89,7 @@ class ImportAssetsTest extends ImportDataTestCase implements TestsPermissionsReq
$this->assertEquals($assignee->id, $activityLogs[0]->target_id);
$this->assertEquals(User::class, $activityLogs[0]->target_type);
$this->assertEquals('Checkout from CSV Importer', $activityLogs[0]->note);
+ $this->assertHasTheseActionLogs($newAsset, ['create', 'checkout']); // TODO - order reversed but passes?!
$this->assertEquals('create', $activityLogs[1]->action_type);
$this->assertNull($activityLogs[1]->target_id);
diff --git a/tests/Support/CustomTestMacros.php b/tests/Support/CustomTestMacros.php
index edfa7c5b6a..956235f461 100644
--- a/tests/Support/CustomTestMacros.php
+++ b/tests/Support/CustomTestMacros.php
@@ -2,7 +2,6 @@
namespace Tests\Support;
-use App\Models\Actionlog;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Testing\TestResponse;
use PHPUnit\Framework\Assert;