public function testRenderStylesheets()
 {
     $map = $this->createMap();
     $this->templateHelperMock->expects($this->once())->method('renderStylesheets')->with($this->equalTo($map))->will($this->returnValue('foo'));
     $this->assertSame('foo', $this->twig->render('{{ google_map_css(map) }}', array('map' => $map)));
 }
 /**
  * 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));
 }