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