From 58759acfe43f61166b4165a3f1bcee355bf975d9 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Thu, 17 Jul 2025 20:15:01 +0100 Subject: [PATCH] Think I hit _all_ of the tests we need to mess with here --- tests/Feature/Importing/Api/ImportAssetsTest.php | 1 + tests/Support/CustomTestMacros.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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;