mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
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
This commit is contained in:
parent
85db3311c7
commit
71197f79df
1 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,8 @@ final class PhabricatorInfrastructureTestCase extends PhabricatorTestCase {
|
|||
* that all the library map is up-to-date.
|
||||
*/
|
||||
public function testLibraryMap() {
|
||||
$root = phutil_get_library_root('phabricator');
|
||||
$library = phutil_get_current_library_name();
|
||||
$root = phutil_get_library_root($library);
|
||||
|
||||
$new_library_map = id(new PhutilLibraryMapBuilder($root))
|
||||
->setQuiet(true)
|
||||
|
@ -31,8 +32,7 @@ final class PhabricatorInfrastructureTestCase extends PhabricatorTestCase {
|
|||
->buildMap();
|
||||
|
||||
$bootloader = PhutilBootloader::getInstance();
|
||||
$old_library_map = $bootloader->getLibraryMapWithoutExtensions(
|
||||
'phabricator');
|
||||
$old_library_map = $bootloader->getLibraryMapWithoutExtensions($library);
|
||||
unset($old_library_map[PhutilLibraryMapBuilder::LIBRARY_MAP_VERSION_KEY]);
|
||||
|
||||
$this->assertEqual(
|
||||
|
|
Loading…
Reference in a new issue