diff --git a/tests/cases/Db/MySQL/TestCreation.php b/tests/cases/Db/MySQL/TestCreation.php index 823a5a3..5283458 100644 --- a/tests/cases/Db/MySQL/TestCreation.php +++ b/tests/cases/Db/MySQL/TestCreation.php @@ -22,7 +22,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest { public function testFailToConnect() { // for the sake of simplicity we don't distinguish between failure modes, but the MySQL-supplied error messages do self::setConf([ - 'dbMySQLPass' => (string) rand(), + 'dbMySQLHost' => "example.invalid", ]); $this->assertException("connectionFailure", "Db"); new Driver; diff --git a/tests/cases/Db/MySQLPDO/TestCreation.php b/tests/cases/Db/MySQLPDO/TestCreation.php index 5ca4e7d..aa9b849 100644 --- a/tests/cases/Db/MySQLPDO/TestCreation.php +++ b/tests/cases/Db/MySQLPDO/TestCreation.php @@ -22,7 +22,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest { public function testFailToConnect() { // for the sake of simplicity we don't distinguish between failure modes, but the MySQL-supplied error messages do self::setConf([ - 'dbMySQLPass' => (string) rand(), + 'dbMySQLHost' => "example.invalid", ]); $this->assertException("connectionFailure", "Db"); new Driver;