diff --git a/tests/cases/Db/MySQL/TestCreation.php b/tests/cases/Db/MySQL/TestCreation.php index 823a5a38..52834587 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 5ca4e7df..aa9b8492 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;