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

Minor change to `PhabricatorInfrastructureTestCase::testLibraryMap`

Summary: Modify `PhabricatorInfrastructureTestCase::testLibraryMap` to use `phutil_get_current_library_name()` instead of hard-coding the library name.

Test Plan: See D9844.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

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

+3 -3
+3 -3
src/__tests__/PhabricatorInfrastructureTestCase.php
··· 23 23 * that all the library map is up-to-date. 24 24 */ 25 25 public function testLibraryMap() { 26 - $root = phutil_get_library_root('phabricator'); 26 + $library = phutil_get_current_library_name(); 27 + $root = phutil_get_library_root($library); 27 28 28 29 $new_library_map = id(new PhutilLibraryMapBuilder($root)) 29 30 ->setQuiet(true) ··· 31 32 ->buildMap(); 32 33 33 34 $bootloader = PhutilBootloader::getInstance(); 34 - $old_library_map = $bootloader->getLibraryMapWithoutExtensions( 35 - 'phabricator'); 35 + $old_library_map = $bootloader->getLibraryMapWithoutExtensions($library); 36 36 unset($old_library_map[PhutilLibraryMapBuilder::LIBRARY_MAP_VERSION_KEY]); 37 37 38 38 $this->assertEqual(