diff --git a/tests/Integration/AbstractIntegrationTestCase.php b/tests/Integration/AbstractIntegrationTestCase.php index 87c9f99..580ab24 100644 --- a/tests/Integration/AbstractIntegrationTestCase.php +++ b/tests/Integration/AbstractIntegrationTestCase.php @@ -49,6 +49,7 @@ protected function getPackageProviders($app): array protected function defineDatabaseMigrations(): void { $this->loadLaravelMigrations(); + $this->loadMigrationsFrom(__DIR__.'/../stubs/migrations'); } /** diff --git a/tests/Integration/GraphQL/Mutations/LoginTest.php b/tests/Integration/GraphQL/Mutations/LoginTest.php index eb34f65..447294f 100644 --- a/tests/Integration/GraphQL/Mutations/LoginTest.php +++ b/tests/Integration/GraphQL/Mutations/LoginTest.php @@ -64,8 +64,6 @@ public function it_logs_a_user_in_using_custom_user_identifier(): void $this->app['config']->set('auth.providers.users.model', UserHasApiTokensIdentifiedByUsername::class); $this->app['config']->set('lighthouse-sanctum.user_identifier_field_name', 'username'); - $this->loadMigrationsFrom('./tests/stubs/migrations'); - UserHasApiTokensIdentifiedByUsername::factory()->create([ 'username' => 'john.doe', 'password' => Hash::make('supersecret'),