1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00

Also adjust test for MySQL connection failure

This commit is contained in:
J. King 2019-10-16 10:26:39 -04:00
parent cb1039326c
commit b8b8a6aa70
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;