function TaxonomyVocabularyArgumentTest::testTermWithVocabularyArgument
Same name in other branches
- 9 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyVocabularyArgumentTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyVocabularyArgumentTest::testTermWithVocabularyArgument()
- 8.9.x core/modules/taxonomy/tests/src/Functional/Views/TaxonomyVocabularyArgumentTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyVocabularyArgumentTest::testTermWithVocabularyArgument()
- 10 core/modules/taxonomy/tests/src/Functional/Views/TaxonomyVocabularyArgumentTest.php \Drupal\Tests\taxonomy\Functional\Views\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 75
Class
- TaxonomyVocabularyArgumentTest
- Tests the vocabulary argument.
Namespace
Drupal\Tests\taxonomy\Functional\ViewsCode
public function testTermWithVocabularyArgument() : void {
$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.