function TaxonomyVocabularyArgumentTest::testTermWithVocabularyArgument
Tests the vocabulary argument handler.
See also
Drupal\taxonomy\Plugin\views\argument\VocabularyVid
File
- 
              core/modules/ taxonomy/ tests/ src/ Functional/ Views/ TaxonomyVocabularyArgumentTest.php, line 73 
Class
- TaxonomyVocabularyArgumentTest
- Tests the vocabulary argument.
Namespace
Drupal\Tests\taxonomy\Functional\ViewsCode
public function testTermWithVocabularyArgument() {
  $this->drupalGet('test_argument_taxonomy_vocabulary/' . $this->vocabularies[0]
    ->id());
  // First term should be present.
  $this->assertSession()
    ->pageTextContains($this->terms[0]
    ->label());
  // Second term should not be present.
  $this->assertSession()
    ->pageTextNotContains($this->terms[1]
    ->label());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
