From b8b8a6aa70efb0fbe509d83b7c24ca7828f575e9 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Wed, 16 Oct 2019 10:26:39 -0400 Subject: [PATCH] Also adjust test for MySQL connection failure --- tests/cases/Db/MySQL/TestCreation.php | 2 +- tests/cases/Db/MySQLPDO/TestCreation.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;