コード例 #1
0
 /**
  * Generating sitemap urls.
  * The urls be used in the sitemap xml file.
  *
  * @return mixed Generated sitemap urls for sitemap xml.
  */
 public function generateSitemapUrls()
 {
     $createdSitemapUrls = array();
     foreach ($this->routes as $route => $params) {
         if ($this->siteMapOptionService->hasSitemapOption($params)) {
             array_push($createdSitemapUrls, $this->siteMapControllerService->createRouteControllers($route, $this->siteMapOptionService->getSitemapOptions($params)));
         }
     }
     return $createdSitemapUrls;
 }
 public function testHasSitemapOption()
 {
     $this->assertTrue($this->mockedSiteMapOptionService->hasSitemapOption($this->route));
 }