Skip to content

Commit 809026f

Browse files
committed
Update RunMigrationsCommantTest.php
1 parent fb18420 commit 809026f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/webfiori/framework/test/cli/RunMigrationsCommantTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testRunMigrations03() {
107107
"Error: Invalid answer.\n",
108108
"Select database connection:\n",
109109
"0: default-conn <--\n",
110-
"Error: Unable to connect to database: 18456 - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'sa'.\n",
110+
"Error: Unable to connect to database: 18456 - [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'sa'.\n",
111111
], $output);
112112
$this->assertEquals(-1, $this->getExitCode());
113113

@@ -169,7 +169,7 @@ public function testRunMigrations07() {
169169
"Error: Invalid answer.\n",
170170
"Select database connection:\n",
171171
"0: default-conn <--\n",
172-
"Error: Unable to connect to database: 4060 - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Cannot open database \"testing_dbx\" requested by the login. The login failed.\n",
172+
"Error: Unable to connect to database: 4060 - [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Cannot open database \"testing_dbx\" requested by the login. The login failed.\n",
173173
], $this->executeMultiCommand([
174174
RunMigrationsCommand::class,
175175
'--ns' => '\\app\\database\\migrations',
@@ -212,7 +212,7 @@ public function testRunMigrations08() {
212212
"0: default-conn <--\n",
213213
"Starting to execute migrations...\n",
214214
"Error: Failed to execute migration due to following:\n",
215-
"208 - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name 'migrations'. (Line 361)\n",
215+
"208 - [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Invalid object name 'migrations'. (Line 361)\n",
216216
"Warning: Execution stopped.\n",
217217
"Info: No migrations were executed.\n"
218218
], $output);
@@ -359,7 +359,7 @@ public function testRunMigrations12() {
359359
"0: default-conn <--\n",
360360
"Initializing migrations table...\n",
361361
"Error: Unable to create migrations table due to following:\n",
362-
"Unable to connect to database: 18456 - [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user 'sa'.\n",
362+
"Unable to connect to database: 18456 - [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]Login failed for user 'sa'.\n",
363363
], $output);
364364
$this->assertEquals(-1, $this->getExitCode());
365365

0 commit comments

Comments
 (0)