Update unit test CRM-12339
authorColeman Watts <coleman@civicrm.org>
Sun, 14 Apr 2013 04:04:11 +0000 (21:04 -0700)
committerColeman Watts <coleman@civicrm.org>
Sun, 14 Apr 2013 04:04:11 +0000 (21:04 -0700)
tests/phpunit/CRM/Core/ResourcesTest.php

index a698cec4648925fb6575cb6942649ef68eb24304..720ce60ee6fb75c813c1c2d68560a927b2eec88a 100644 (file)
@@ -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() {