mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Also adjust test for MySQL connection failure
This commit is contained in:
parent
cb1039326c
commit
b8b8a6aa70
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
public function testFailToConnect() {
|
public function testFailToConnect() {
|
||||||
// for the sake of simplicity we don't distinguish between failure modes, but the MySQL-supplied error messages do
|
// for the sake of simplicity we don't distinguish between failure modes, but the MySQL-supplied error messages do
|
||||||
self::setConf([
|
self::setConf([
|
||||||
'dbMySQLPass' => (string) rand(),
|
'dbMySQLHost' => "example.invalid",
|
||||||
]);
|
]);
|
||||||
$this->assertException("connectionFailure", "Db");
|
$this->assertException("connectionFailure", "Db");
|
||||||
new Driver;
|
new Driver;
|
||||||
|
|
|
@ -22,7 +22,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest {
|
||||||
public function testFailToConnect() {
|
public function testFailToConnect() {
|
||||||
// for the sake of simplicity we don't distinguish between failure modes, but the MySQL-supplied error messages do
|
// for the sake of simplicity we don't distinguish between failure modes, but the MySQL-supplied error messages do
|
||||||
self::setConf([
|
self::setConf([
|
||||||
'dbMySQLPass' => (string) rand(),
|
'dbMySQLHost' => "example.invalid",
|
||||||
]);
|
]);
|
||||||
$this->assertException("connectionFailure", "Db");
|
$this->assertException("connectionFailure", "Db");
|
||||||
new Driver;
|
new Driver;
|
||||||
|
|
Loading…
Reference in a new issue