1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Fix visibility of some LiskDAO methods

Summary: Ref T6822.

Test Plan: Ran unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T6822

Differential Revision: https://secure.phabricator.com/D11410
This commit is contained in:
Joshua Spence 2015-01-16 07:43:51 +11:00
parent daadf95537
commit 9f29af108b
2 changed files with 5 additions and 3 deletions

View file

@ -45,7 +45,9 @@ final class LiskIsolationTestCase extends PhabricatorTestCase {
$dao = new LiskIsolationTestDAO();
try {
$dao->establishLiveConnection('r');
$method = new ReflectionMethod($dao, 'establishLiveConnection');
$method->setAccessible(true);
$method->invoke($dao, 'r');
$this->assertFailure(
'LiskIsolationTestDAO did not throw an exception when instructed to '.

View file

@ -15,13 +15,13 @@ final class LiskIsolationTestDAO extends LiskDAO {
return PhabricatorPHID::generateNewPHID('TISO');
}
public function establishLiveConnection($mode) {
protected function establishLiveConnection($mode) {
throw new LiskIsolationTestDAOException(
'Isolation failure! DAO is attempting to connect to an external '.
'resource!');
}
public function getConnectionNamespace() {
protected function getConnectionNamespace() {
return 'test';
}