From: Seamus Lee Date: Thu, 13 Sep 2018 03:30:15 +0000 (+1000) Subject: Alter Test to ensure that order of city is output doesn't mater in the same format... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=77347e0adbaacf25c1a528d3815bd6ca5ed1be1c;p=civicrm-core.git Alter Test to ensure that order of city is output doesn't mater in the same format as country --- diff --git a/tests/phpunit/CRM/Report/Form/ActivityTest.php b/tests/phpunit/CRM/Report/Form/ActivityTest.php index 05ebb6ffe3..cda0ffa5f4 100644 --- a/tests/phpunit/CRM/Report/Form/ActivityTest.php +++ b/tests/phpunit/CRM/Report/Form/ActivityTest.php @@ -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'])); } }