From 6521a306ec01fe6c9aa5f8f876db96429c8e964c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 13 Apr 2013 21:04:11 -0700 Subject: [PATCH] Update unit test CRM-12339 --- tests/phpunit/CRM/Core/ResourcesTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/CRM/Core/ResourcesTest.php b/tests/phpunit/CRM/Core/ResourcesTest.php index a698cec464..720ce60ee6 100644 --- a/tests/phpunit/CRM/Core/ResourcesTest.php +++ b/tests/phpunit/CRM/Core/ResourcesTest.php @@ -134,8 +134,8 @@ class CRM_Core_ResourcesTest extends CiviUnitTestCase { $this->res->getSettings() ); $actual = $this->res->renderSetting(); - $expected = 'CRM = cj.extend(true, ' . json_encode(array('fruit' => array('yours' => 'orange', 'mine' => 'apple'))) . ', CRM);'; - $this->assertEquals($expected, $actual); + $expected = json_encode(array('fruit' => array('yours' => 'orange', 'mine' => 'apple'))); + $this->assertTrue(strpos($actual, $expected) !== FALSE); } function testAddSettingFactory() { -- 2.25.1