mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Add regression test for LiskDAO::__call()
Summary: D3606 Test Plan: Deleted `call()`, ran the test. Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3814
This commit is contained in:
parent
01de3dff81
commit
d506ffbd30
2 changed files with 35 additions and 0 deletions
|
@ -486,6 +486,7 @@ phutil_register_library_map(array(
|
|||
'JavelinViewExampleServerView' => 'applications/uiexample/examples/JavelinViewExampleServerView.php',
|
||||
'LiskDAO' => 'infrastructure/storage/lisk/LiskDAO.php',
|
||||
'LiskDAOSet' => 'infrastructure/storage/lisk/LiskDAOSet.php',
|
||||
'LiskDAOTestCase' => 'infrastructure/storage/lisk/__tests__/LiskDAOTestCase.php',
|
||||
'LiskEphemeralObjectException' => 'infrastructure/storage/lisk/LiskEphemeralObjectException.php',
|
||||
'LiskFixtureTestCase' => 'infrastructure/storage/lisk/__tests__/LiskFixtureTestCase.php',
|
||||
'LiskIsolationTestCase' => 'infrastructure/storage/lisk/__tests__/LiskIsolationTestCase.php',
|
||||
|
@ -1686,6 +1687,7 @@ phutil_register_library_map(array(
|
|||
'JavelinUIExample' => 'PhabricatorUIExample',
|
||||
'JavelinViewExample' => 'PhabricatorUIExample',
|
||||
'JavelinViewExampleServerView' => 'AphrontView',
|
||||
'LiskDAOTestCase' => 'PhabricatorTestCase',
|
||||
'LiskEphemeralObjectException' => 'Exception',
|
||||
'LiskFixtureTestCase' => 'PhabricatorTestCase',
|
||||
'LiskIsolationTestCase' => 'PhabricatorTestCase',
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* Copyright 2012 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
final class LiskDAOTestCase extends PhabricatorTestCase {
|
||||
|
||||
public function testCheckProperty() {
|
||||
$scratch = new HarbormasterScratchTable();
|
||||
$scratch->getData();
|
||||
|
||||
$this->assertException('Exception', array($this, 'getData'));
|
||||
}
|
||||
|
||||
public function getData() {
|
||||
$isolation = new LiskIsolationTestDAO();
|
||||
$isolation->getData();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue