Loosedn activityTest on country order.
authoreileen <emcnaughton@wikimedia.org>
Thu, 16 Aug 2018 03:49:11 +0000 (15:49 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 16 Aug 2018 03:49:11 +0000 (15:49 +1200)
The order is no considered significant, be open minded

tests/phpunit/CRM/Report/Form/ActivityTest.php

index d33751958b10230110f8222431f8b5582cce4796..05ebb6ffe3314dc3948452550f8180a818635b33 100644 (file)
@@ -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']);
   }