@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.

Use `PhutilLibraryTestCase`

Summary: Depends on D11231.

Test Plan: `arc unit`

Reviewers: btrahan, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11233

+5 -32
+2
src/__phutil_library_map__.php
··· 1861 1861 'PhabricatorLegalpadConfigOptions' => 'applications/legalpad/config/PhabricatorLegalpadConfigOptions.php', 1862 1862 'PhabricatorLegalpadDocumentPHIDType' => 'applications/legalpad/phid/PhabricatorLegalpadDocumentPHIDType.php', 1863 1863 'PhabricatorLegalpadSignaturePolicyRule' => 'applications/policy/rule/PhabricatorLegalpadSignaturePolicyRule.php', 1864 + 'PhabricatorLibraryTestCase' => '__tests__/PhabricatorLibraryTestCase.php', 1864 1865 'PhabricatorLipsumArtist' => 'applications/lipsum/image/PhabricatorLipsumArtist.php', 1865 1866 'PhabricatorLipsumGenerateWorkflow' => 'applications/lipsum/management/PhabricatorLipsumGenerateWorkflow.php', 1866 1867 'PhabricatorLipsumManagementWorkflow' => 'applications/lipsum/management/PhabricatorLipsumManagementWorkflow.php', ··· 5062 5063 'PhabricatorLegalpadConfigOptions' => 'PhabricatorApplicationConfigOptions', 5063 5064 'PhabricatorLegalpadDocumentPHIDType' => 'PhabricatorPHIDType', 5064 5065 'PhabricatorLegalpadSignaturePolicyRule' => 'PhabricatorPolicyRule', 5066 + 'PhabricatorLibraryTestCase' => 'PhutilLibraryTestCase', 5065 5067 'PhabricatorLipsumGenerateWorkflow' => 'PhabricatorLipsumManagementWorkflow', 5066 5068 'PhabricatorLipsumManagementWorkflow' => 'PhabricatorManagementWorkflow', 5067 5069 'PhabricatorLipsumMondrianArtist' => 'PhabricatorLipsumArtist',
-32
src/__tests__/PhabricatorInfrastructureTestCase.php
··· 8 8 ); 9 9 } 10 10 11 - /** 12 - * This is more of an acceptance test case instead of a unit test. It verifies 13 - * that all symbols can be loaded correctly. It can catch problems like 14 - * missing methods in descendants of abstract base classes. 15 - */ 16 - public function testEverythingImplemented() { 17 - id(new PhutilSymbolLoader())->selectAndLoadSymbols(); 18 - $this->assertTrue(true); 19 - } 20 - 21 - /** 22 - * This is more of an acceptance test case instead of a unit test. It verifies 23 - * that all the library map is up-to-date. 24 - */ 25 - public function testLibraryMap() { 26 - $library = phutil_get_current_library_name(); 27 - $root = phutil_get_library_root($library); 28 - 29 - $new_library_map = id(new PhutilLibraryMapBuilder($root)) 30 - ->buildMap(); 31 - 32 - $bootloader = PhutilBootloader::getInstance(); 33 - $old_library_map = $bootloader->getLibraryMapWithoutExtensions($library); 34 - unset($old_library_map[PhutilLibraryMapBuilder::LIBRARY_MAP_VERSION_KEY]); 35 - 36 - $this->assertEqual( 37 - $new_library_map, 38 - $old_library_map, 39 - 'The library map does not appear to be up-to-date. Try '. 40 - 'rebuilding the map with `arc liberate`.'); 41 - } 42 - 43 11 public function testApplicationsInstalled() { 44 12 $all = PhabricatorApplication::getAllApplications(); 45 13 $installed = PhabricatorApplication::getAllInstalledApplications();
+3
src/__tests__/PhabricatorLibraryTestCase.php
··· 1 + <?php 2 + 3 + final class PhabricatorLibraryTestCase extends PhutilLibraryTestCase {}