-- CRM-13012 changes as per comment in the issue
authorRavish Nair <ravish.nair@webaccess.co.in>
Mon, 26 Aug 2013 12:30:25 +0000 (18:00 +0530)
committerRavish Nair <ravish.nair@webaccess.co.in>
Mon, 26 Aug 2013 12:30:25 +0000 (18:00 +0530)
----------------------------------------
* CRM-13012: Run api_v3_SyntaxConformanceAllEntitiesTest with hrjob API's
  http://issues.civicrm.org/jira/browse/CRM-13012
* CRM-13250: Add Contact Type and Subtype as a Column to Reports
  http://issues.civicrm.org/jira/browse/CRM-13250

tests/phpunit/CiviTest/CiviTestSuite.php

index 5058a39818f504b7485c060e0c45885bd25000ca..f84ee108c96d1c801ef3e6d3009d332204c9e062 100644 (file)
@@ -191,8 +191,10 @@ class CiviTestSuite extends PHPUnit_Framework_TestSuite {
         foreach (array_diff($newClassNames,
           $oldClassNames
                  ) as $name) {
-          if (preg_match('/Test$/', $name)) {
-            $addTestSuites[] = $name;
+          if (strpos($fileInfo->getRealPath(), str_replace('_', '/', $name) . ".php") !== FALSE) {
+            if (preg_match('/Test$/', $name)) {
+              $addTestSuites[] = $name;
+            }
           }
         }
       }