mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 21:02:41 +01: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:
parent
daadf95537
commit
9f29af108b
2 changed files with 5 additions and 3 deletions
|
@ -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 '.
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue