/** * Renders a styles set. * * @param string $name The name * @param array $stylesSet The style set. * * @return string The rendered style set. */ public function renderStylesSet($name, array $stylesSet) { return $this->helper->renderStylesSet($name, $stylesSet); }
public function testRenderStylesSet() { $this->assertSame('if (CKEDITOR.stylesSet.get("foo") === null) { CKEDITOR.stylesSet.add("foo", {"foo":"bar"}); }', $this->helper->renderStylesSet('foo', array('foo' => 'bar'))); }