public function SimplesitemapTest::testAddCustomLinkDefaults in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 tests/src/Functional/SimplesitemapTest.php \Drupal\Tests\simple_sitemap\Functional\SimplesitemapTest::testAddCustomLinkDefaults()
- 4.x tests/src/Functional/SimplesitemapTest.php \Drupal\Tests\simple_sitemap\Functional\SimplesitemapTest::testAddCustomLinkDefaults()
Test default settings of custom links.
File
- tests/
src/ Functional/ SimplesitemapTest.php, line 53
Class
- SimplesitemapTest
- Tests Simple XML sitemap functional integration.
Namespace
Drupal\Tests\simple_sitemap\FunctionalCode
public function testAddCustomLinkDefaults() {
$this->generator
->removeCustomLinks()
->addCustomLink('/node/' . $this->node
->id())
->generateSitemap('nobatch');
$this
->drupalGet('sitemap.xml');
$this
->assertSession()
->responseContains('node/' . $this->node
->id());
$this
->assertSession()
->responseContains('0.5');
$this
->assertSession()
->responseNotContains('changefreq');
}