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