Browse Source

Also adjust test for MySQL connection failure

rpm
J. King 5 years ago
parent
commit
b8b8a6aa70
  1. 2
      tests/cases/Db/MySQL/TestCreation.php
  2. 2
      tests/cases/Db/MySQLPDO/TestCreation.php

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

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

Loading…
Cancel
Save