public function SitemapTaxonomyTest::testVocabularyTitle in Sitemap 2.0.x
Same name and namespace in other branches
- 8.2 src/Tests/SitemapTaxonomyTest.php \Drupal\sitemap\Tests\SitemapTaxonomyTest::testVocabularyTitle()
Tests vocabulary title.
File
- src/
Tests/ SitemapTaxonomyTest.php, line 24
Class
- SitemapTaxonomyTest
- Tests the display of taxonomies based on sitemap settings.
Namespace
Drupal\sitemap\TestsCode
public function testVocabularyTitle() {
// The vocabulary is already configured to display in parent ::setUp().
$vocab = $this->vocabulary;
$vid = $vocab
->id();
$this
->titleTest($vocab
->label(), 'vocabulary', $vid, TRUE);
}