1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +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:
Joshua Spence 2014-07-06 23:49:21 +10:00
parent 85db3311c7
commit 71197f79df

View file

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