/** * action show * * @param \Fakturaberlin\Werkstattsuche\Domain\Model\Werkstatt $werkstatt * @return void */ public function showAction(\Fakturaberlin\Werkstattsuche\Domain\Model\Werkstatt $werkstatt) { $apiKey = ""; $width = 500; $height = 300; // http://docs.typo3.org/typo3cms/extensions/wec_map/Configuration/CreateTheMapObject/Index.html include_once \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName('typo3conf/ext/wec_map/map_service/google/class.tx_wecmap_map_google.php'); $className = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance("tx_wecmap_map_google"); $map = new $className($apiKey, $width, $height); $map->addMarkerByAddress($werkstatt->getStrasse(), $werkstatt->getOrt(), "", $werkstatt->getPlz(), "Germany", $werkstatt->getTitel()); $output = $map->drawMap(); $this->view->assign('googlemap', $output); $this->view->assign('werkstatt', $werkstatt); }
/** * @test */ public function getOrtReturnsInitialValueForString() { $this->assertSame('', $this->subject->getOrt()); }