From 61f3a6203b06e80048ca042ea806fe82835d2615 Mon Sep 17 00:00:00 2001 From: Ravish Nair Date: Mon, 26 Aug 2013 18:00:25 +0530 Subject: [PATCH] -- CRM-13012 changes as per comment in the issue ---------------------------------------- * 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviTestSuite.php b/tests/phpunit/CiviTest/CiviTestSuite.php index 5058a39818..f84ee108c9 100644 --- a/tests/phpunit/CiviTest/CiviTestSuite.php +++ b/tests/phpunit/CiviTest/CiviTestSuite.php @@ -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; + } } } } -- 2.25.1