@@ -53,10 +53,10 @@ public function test_with_multiple_connections(): void
5353 {
5454 $ migrationManager = $ this ->container ->get (MigrationManager::class);
5555
56- $ migrationManager ->inDatabase ('main ' )->executeUp (new CreateMigrationsTable ());
57- $ migrationManager ->inDatabase ('main ' )->executeUp (new CreatePublishersTable ());
58- $ migrationManager ->inDatabase ('backup ' )->executeUp (new CreateMigrationsTable ());
59- $ migrationManager ->inDatabase ('backup ' )->executeUp (new CreatePublishersTable ());
56+ $ migrationManager ->useDatabase ('main ' )->executeUp (new CreateMigrationsTable ());
57+ $ migrationManager ->useDatabase ('main ' )->executeUp (new CreatePublishersTable ());
58+ $ migrationManager ->useDatabase ('backup ' )->executeUp (new CreateMigrationsTable ());
59+ $ migrationManager ->useDatabase ('backup ' )->executeUp (new CreatePublishersTable ());
6060
6161 query (Publisher::class)
6262 ->insert (
@@ -134,8 +134,8 @@ public function test_with_different_dialects(): void
134134
135135 $ migrationManager = $ this ->container ->get (MigrationManager::class);
136136
137- $ migrationManager ->inDatabase ('sqlite-main ' )->executeUp (new CreateMigrationsTable ());
138- $ migrationManager ->inDatabase ('mysql-main ' )->executeUp (new CreateMigrationsTable ());
137+ $ migrationManager ->useDatabase ('sqlite-main ' )->executeUp (new CreateMigrationsTable ());
138+ $ migrationManager ->useDatabase ('mysql-main ' )->executeUp (new CreateMigrationsTable ());
139139
140140 $ this ->expectNotToPerformAssertions ();
141141 }
@@ -145,7 +145,7 @@ public function test_fails_with_unknown_connection(): void
145145 $ migrationManager = $ this ->container ->get (MigrationManager::class);
146146
147147 try {
148- $ migrationManager ->inDatabase ('unknown ' )->executeUp (new CreateMigrationsTable ());
148+ $ migrationManager ->useDatabase ('unknown ' )->executeUp (new CreateMigrationsTable ());
149149 } catch (CannotResolveTaggedDependency $ cannotResolveTaggedDependency ) {
150150 $ this ->assertStringContainsString ('Could not resolve tagged dependency Tempest\Database\Config\DatabaseConfig#unknown ' , $ cannotResolveTaggedDependency ->getMessage ());
151151 }
0 commit comments