Example #1
0
 public function testRenderPlugin()
 {
     $this->assetsHelperMock->expects($this->once())->method('getUrl')->with($this->equalTo('foo'), $this->equalTo(null))->will($this->returnValue('bar'));
     $this->assetsVersionTrimerHelperMock->expects($this->once())->method('trim')->with($this->equalTo('bar'))->will($this->returnValue('baz'));
     $this->assertSame('CKEDITOR.plugins.addExternal("foo", "baz", "bat");', $this->helper->renderPlugin('foo', array('path' => 'foo', 'filename' => 'bat')));
 }