From 77347e0adbaacf25c1a528d3815bd6ca5ed1be1c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 13 Sep 2018 13:30:15 +1000 Subject: [PATCH] Alter Test to ensure that order of city is output doesn't mater in the same format as country --- tests/phpunit/CRM/Report/Form/ActivityTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/CRM/Report/Form/ActivityTest.php b/tests/phpunit/CRM/Report/Form/ActivityTest.php index 05ebb6ffe331..cda0ffa5f47b 100644 --- a/tests/phpunit/CRM/Report/Form/ActivityTest.php +++ b/tests/phpunit/CRM/Report/Form/ActivityTest.php @@ -154,7 +154,7 @@ public function testTargetAddressFields() { // 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'])); } }