From: Coleman Watts Date: Sun, 14 Apr 2013 04:04:11 +0000 (-0700) Subject: Update unit test CRM-12339 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6521a306ec01fe6c9aa5f8f876db96429c8e964c;p=civicrm-core.git Update unit test CRM-12339 --- 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() {