public function testRegisterRoutesIncludesAllRoutes() { GoogleSitemap::register_route('/test/'); GoogleSitemap::register_routes(array('/test/', '/unittests/', '/anotherlink/'), 'weekly'); $response = $this->get('sitemap.xml/sitemap/GoogleSitemapRoute/1'); $body = $response->getBody(); $this->assertEquals(200, $response->getStatusCode(), 'successful loaded nested sitemap'); $this->assertEquals(3, substr_count($body, "<loc>")); }