Alter Test to ensure that order of city is output doesn't mater in the same format...
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 13 Sep 2018 03:30:15 +0000 (13:30 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 13 Sep 2018 03:30:15 +0000 (13:30 +1000)
tests/phpunit/CRM/Report/Form/ActivityTest.php

index 05ebb6ffe3314dc3948452550f8180a818635b33..cda0ffa5f47bbf918cfe393b63cca92745f27f48 100644 (file)
@@ -154,7 +154,7 @@ class CRM_Report_Form_ActivityTest extends CiviReportTestCase {
     // ensure that country values of respective target contacts are only shown
     $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']);
+    $this->assertTrue(in_array($rows[0]['civicrm_address_city'], ['ABC;DEF', 'DEF;ABC']));
   }
 
 }