@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+35
+2
src/__phutil_library_map__.php
··· 486 486 'JavelinViewExampleServerView' => 'applications/uiexample/examples/JavelinViewExampleServerView.php', 487 487 'LiskDAO' => 'infrastructure/storage/lisk/LiskDAO.php', 488 488 'LiskDAOSet' => 'infrastructure/storage/lisk/LiskDAOSet.php', 489 + 'LiskDAOTestCase' => 'infrastructure/storage/lisk/__tests__/LiskDAOTestCase.php', 489 490 'LiskEphemeralObjectException' => 'infrastructure/storage/lisk/LiskEphemeralObjectException.php', 490 491 'LiskFixtureTestCase' => 'infrastructure/storage/lisk/__tests__/LiskFixtureTestCase.php', 491 492 'LiskIsolationTestCase' => 'infrastructure/storage/lisk/__tests__/LiskIsolationTestCase.php', ··· 1686 1687 'JavelinUIExample' => 'PhabricatorUIExample', 1687 1688 'JavelinViewExample' => 'PhabricatorUIExample', 1688 1689 'JavelinViewExampleServerView' => 'AphrontView', 1690 + 'LiskDAOTestCase' => 'PhabricatorTestCase', 1689 1691 'LiskEphemeralObjectException' => 'Exception', 1690 1692 'LiskFixtureTestCase' => 'PhabricatorTestCase', 1691 1693 'LiskIsolationTestCase' => 'PhabricatorTestCase',
+33
src/infrastructure/storage/lisk/__tests__/LiskDAOTestCase.php
··· 1 + <?php 2 + 3 + /* 4 + * Copyright 2012 Facebook, Inc. 5 + * 6 + * Licensed under the Apache License, Version 2.0 (the "License"); 7 + * you may not use this file except in compliance with the License. 8 + * You may obtain a copy of the License at 9 + * 10 + * http://www.apache.org/licenses/LICENSE-2.0 11 + * 12 + * Unless required by applicable law or agreed to in writing, software 13 + * distributed under the License is distributed on an "AS IS" BASIS, 14 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 + * See the License for the specific language governing permissions and 16 + * limitations under the License. 17 + */ 18 + 19 + final class LiskDAOTestCase extends PhabricatorTestCase { 20 + 21 + public function testCheckProperty() { 22 + $scratch = new HarbormasterScratchTable(); 23 + $scratch->getData(); 24 + 25 + $this->assertException('Exception', array($this, 'getData')); 26 + } 27 + 28 + public function getData() { 29 + $isolation = new LiskIsolationTestDAO(); 30 + $isolation->getData(); 31 + } 32 + 33 + }