/** * Renders the google map javascripts. * * @param \Ivory\GoogleMap\Map $map The map. * * @return string The html output. */ public function renderJavascripts(Map $map) { return $this->templateHelper->renderJavascripts($map); }
public function testRenderJavascripts() { $map = $this->getMock('Ivory\\GoogleMap\\Map'); $this->mapHelperMock->expects($this->once())->method('renderJavascripts')->with($map)->will($this->returnValue('foo')); $this->assertSame('foo', $this->templateHelper->renderJavascripts($map)); }