]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Fix `arc unit --everything`
authorJoshua Spence <josh@joshuaspence.com>
Tue, 11 Aug 2015 12:37:28 +0000 (22:37 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 11 Aug 2015 12:37:28 +0000 (22:37 +1000)
Summary: This was broken in D13573.

Test Plan: Ran `arc unit --everything` in rPHU.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

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

src/unit/engine/PhutilUnitTestEngine.php

index eb00f79cf2f4d07c73c5acd7ddd56207ac54cf56..110f8e35be5e0a2e32e64de80b0f476bec710929 100644 (file)
@@ -80,9 +80,11 @@ final class PhutilUnitTestEngine extends ArcanistUnitTestEngine {
   private function getAllTests() {
     $project_root = $this->getWorkingCopy()->getProjectRoot();
 
-    $symbols = id(new PhutilClassMapQuery())
+    $symbols = id(new PhutilSymbolLoader())
+      ->setType('class')
       ->setAncestorClass('PhutilTestCase')
-      ->execute();
+      ->setConcreteOnly(true)
+      ->selectSymbolsWithoutLoading();
 
     $in_working_copy = array();