public function TaxonomyEntityIndexTermArgumentDepthTest::testTermWithDepthArgument in Taxonomy Entity Index 8
Tests the term with depth argument handler.
File
- tests/
src/ Functional/ Views/ TaxonomyEntityIndexTermArgumentDepthTest.php, line 110
Class
- TaxonomyEntityIndexTermArgumentDepthTest
- Tests the taxonomy term with depth argument.
Namespace
Drupal\Tests\taxonomy_entity_index\Functional\ViewsCode
public function testTermWithDepthArgument() {
$this
->drupalGet('test_argument_taxonomy_entity_index_index_tid_depth/' . $this->terms[0]
->id());
// "Node with Term" should be present on the page.
$this
->assertText($this->nodes[2]
->getTitle());
// Media with the same numeric ID that is referencing the term should not
// affect the results, thus ensuring that "Node without Term" should not be
// present on the page.
$this
->assertNoText($this->nodes[3]
->getTitle());
}