From dc067af6fb3def141f5fbb64b94e837a6164abbb Mon Sep 17 00:00:00 2001 From: Archey Barrell Date: Sun, 27 Feb 2022 04:05:32 +0000 Subject: [PATCH] Fix for FindUniqueTest when class mappings are changed --- app/sprinkles/account/tests/Integration/FindUniqueTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/sprinkles/account/tests/Integration/FindUniqueTest.php b/app/sprinkles/account/tests/Integration/FindUniqueTest.php index cb92f3aa0..79de1a255 100644 --- a/app/sprinkles/account/tests/Integration/FindUniqueTest.php +++ b/app/sprinkles/account/tests/Integration/FindUniqueTest.php @@ -37,6 +37,9 @@ public function setUp(): void // Setup test database $this->setupTestDatabase(); $this->refreshDatabase(); + + $this->ci->classMapper->setClassMapping('user', 'UserFrosting\Sprinkle\Account\Database\Models\User'); + $this->ci->classMapper->setClassMapping('group', 'UserFrosting\Sprinkle\Account\Database\Models\Group'); } /**