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:
@@ -45,7 +45,9 @@ final class LiskIsolationTestCase extends PhabricatorTestCase {
|
|||||||
$dao = new LiskIsolationTestDAO();
|
$dao = new LiskIsolationTestDAO();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$dao->establishLiveConnection('r');
|
$method = new ReflectionMethod($dao, 'establishLiveConnection');
|
||||||
|
$method->setAccessible(true);
|
||||||
|
$method->invoke($dao, 'r');
|
||||||
|
|
||||||
$this->assertFailure(
|
$this->assertFailure(
|
||||||
'LiskIsolationTestDAO did not throw an exception when instructed to '.
|
'LiskIsolationTestDAO did not throw an exception when instructed to '.
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ final class LiskIsolationTestDAO extends LiskDAO {
|
|||||||
return PhabricatorPHID::generateNewPHID('TISO');
|
return PhabricatorPHID::generateNewPHID('TISO');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function establishLiveConnection($mode) {
|
protected function establishLiveConnection($mode) {
|
||||||
throw new LiskIsolationTestDAOException(
|
throw new LiskIsolationTestDAOException(
|
||||||
'Isolation failure! DAO is attempting to connect to an external '.
|
'Isolation failure! DAO is attempting to connect to an external '.
|
||||||
'resource!');
|
'resource!');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getConnectionNamespace() {
|
protected function getConnectionNamespace() {
|
||||||
return 'test';
|
return 'test';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user