public function testRenderJsPath() { $this->assetsHelperMock->expects($this->once())->method('getUrl')->with($this->equalTo('foo'), $this->equalTo(null))->will($this->returnValue('bar')); $this->assertSame('bar', $this->helper->renderJsPath('foo')); }