You are here

protected function SitemapTaxonomyTermsRssTest::setUp in Sitemap 8.2

Same name and namespace in other branches
  1. 8 src/Tests/SitemapTaxonomyTermsRssTest.php \Drupal\sitemap\Tests\SitemapTaxonomyTermsRssTest::setUp()
  2. 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\Tests

Code

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,
  ]);
}