From 71197f79df9301827a3f2eba0583caad0c66544a Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sun, 6 Jul 2014 23:49:21 +1000 Subject: [PATCH] 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 --- src/__tests__/PhabricatorInfrastructureTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/__tests__/PhabricatorInfrastructureTestCase.php b/src/__tests__/PhabricatorInfrastructureTestCase.php index 0b38dcd465..f199948f9c 100644 --- a/src/__tests__/PhabricatorInfrastructureTestCase.php +++ b/src/__tests__/PhabricatorInfrastructureTestCase.php @@ -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(