Ejemplo n.º 1
0
 public function testRenderTemplate()
 {
     $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.addTemplates("foo", {"imagesPath":"baz","filename":"bat"});', $this->helper->renderTemplate('foo', array('imagesPath' => 'foo', 'filename' => 'bat')));
 }