From: eileen Date: Thu, 16 Aug 2018 03:49:11 +0000 (+1200) Subject: Loosedn activityTest on country order. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b72100fcc234d9e4db499df7730dc0fada93f00e;p=civicrm-core.git Loosedn activityTest on country order. The order is no considered significant, be open minded --- diff --git a/tests/phpunit/CRM/Report/Form/ActivityTest.php b/tests/phpunit/CRM/Report/Form/ActivityTest.php index d33751958b..05ebb6ffe3 100644 --- a/tests/phpunit/CRM/Report/Form/ActivityTest.php +++ b/tests/phpunit/CRM/Report/Form/ActivityTest.php @@ -152,7 +152,7 @@ class CRM_Report_Form_ActivityTest extends CiviReportTestCase { // ensure that only 1 activity is created $this->assertEquals(1, count($rows)); // ensure that country values of respective target contacts are only shown - $this->assertEquals('India;United States', $rows[0]['civicrm_address_country_id']); + $this->assertTrue(in_array($rows[0]['civicrm_address_country_id'], ['India;United States', 'United States;India'])); // ensure that city values of respective target contacts are only shown $this->assertEquals('ABC;DEF', $rows[0]['civicrm_address_city']); }