Browse Source

Fix PostgreSQL tests when using "trust" authentication

rpm
J. King 5 years ago
parent
commit
cb1039326c
  1. 2
      tests/cases/Db/PostgreSQL/TestCreation.php
  2. 2
      tests/cases/Db/PostgreSQLPDO/TestCreation.php

2
tests/cases/Db/PostgreSQL/TestCreation.php

@ -65,7 +65,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest {
public function testFailToConnect() {
// we cannnot distinguish between different connection failure modes
self::setConf([
'dbPostgreSQLPass' => (string) rand(),
'dbPostgreSQLHost' => "example.invalid",
]);
$this->assertException("connectionFailure", "Db");
new Driver;

2
tests/cases/Db/PostgreSQLPDO/TestCreation.php

@ -65,7 +65,7 @@ class TestCreation extends \JKingWeb\Arsse\Test\AbstractTest {
public function testFailToConnect() {
// PDO dies not distinguish between different connection failure modes
self::setConf([
'dbPostgreSQLPass' => (string) rand(),
'dbPostgreSQLHost' => "example.invalid",
]);
$this->assertException("connectionFailure", "Db");
new Driver;

Loading…
Cancel
Save