public function testRenderReplaceWithCKEditorConstants() { $this->assertSame('CKEDITOR.replace("foo", {"config":{"enterMode":CKEDITOR.ENTER_BR,"shiftEnterMode":CKEDITOR.ENTER_BR}});', $this->helper->renderReplace('foo', array('config' => array('enterMode' => 'CKEDITOR.ENTER_BR', 'shiftEnterMode' => 'CKEDITOR.ENTER_BR')))); }