From 81738b970aa530d615a56c1ce676f7311a0a68c2 Mon Sep 17 00:00:00 2001 From: davidbyoung Date: Thu, 22 Jun 2023 21:09:43 -0500 Subject: [PATCH] Refactored authenticator in integration tests to implement an interface --- tests/Integration/Demo/Users/UserTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Integration/Demo/Users/UserTest.php b/tests/Integration/Demo/Users/UserTest.php index 5683dec..643842b 100644 --- a/tests/Integration/Demo/Users/UserTest.php +++ b/tests/Integration/Demo/Users/UserTest.php @@ -19,13 +19,14 @@ use App\Demo\Database\GlobalDatabaseSeeder; use App\Demo\Users\NewUser; use App\Demo\Users\User; +use App\Tests\Integration\Demo\Auth\IMockedAuthenticator; use App\Tests\Integration\Demo\Auth\MockAuthenticator; use App\Tests\Integration\IntegrationTestCase; use Exception; class UserTest extends IntegrationTestCase { - private MockAuthenticator $authenticator; + private IMockedAuthenticator $authenticator; /** @var list The list of users to delete at the end of each test */ private array $createdUsers = [];