Skip to content

Commit 76c5f3f

Browse files
committed
test: Added MySQL Password
1 parent 0ecc9e4 commit 76c5f3f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tests/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
//the name of tests directory. Update as needed.
2222
define('TESTS_DIRECTORY', 'tests');
23+
define('MYSQL_ROOT_PASSWORD', getenv('MYSQL_ROOT_PASSWORD') ?: '123456');
2324
define('SQL_SERVER_HOST', getenv('SQL_SERVER_HOST') ?: 'localhost');
2425
define('SQL_SERVER_USER', getenv('SQL_SERVER_USER') ?: 'sa');
2526
define('SQL_SERVER_PASS', getenv('SA_SQL_SERVER_PASSWORD') ?: '1234567890@Eu');

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function tearDown(): void {
2727
}
2828

2929
private function setupTestConnection(): void {
30-
$this->testConnection = new ConnectionInfo('mysql', 'root', '123456', 'testing_db', 'localhost', 3306);
30+
$this->testConnection = new ConnectionInfo('mysql', 'root', MYSQL_ROOT_PASSWORD, 'testing_db', 'localhost', 3306);
3131
$this->testConnection->setName('test-connection');
3232
App::getConfig()->addOrUpdateDBConnection($this->testConnection);
3333
}

0 commit comments

Comments
 (0)