protected function SitemapTaxonomyTermsRssTest::setUp in Sitemap 8.2
Same name and namespace in other branches
- 8 src/Tests/SitemapTaxonomyTermsRssTest.php \Drupal\sitemap\Tests\SitemapTaxonomyTermsRssTest::setUp()
- 2.0.x src/Tests/SitemapTaxonomyTermsRssTest.php \Drupal\sitemap\Tests\SitemapTaxonomyTermsRssTest::setUp()
Overrides SitemapTaxonomyTestBase::setUp
File
- src/
Tests/ SitemapTaxonomyTermsRssTest.php, line 15
Class
- SitemapTaxonomyTermsRssTest
- Tests the display of RSS links based on sitemap settings.
Namespace
Drupal\sitemap\TestsCode
protected function setUp() {
parent::setUp();
$vocab = $this->vocabulary;
$vid = $vocab
->id();
// Show all taxonomy terms, even if they are not assigned to any nodes.
$this
->saveSitemapForm([
"plugins[vocabulary:{$vid}][settings][term_count_threshold]" => 0,
]);
}