createTerm(['name' => 'First']); // Create a node w/o any terms. $settings = ['type' => 'article']; // Create a node with linked to the term. $settings['field_views_testing_tags'][0]['target_id'] = $first->id(); $this->nodes[] = $this->drupalCreateNode($settings); $this->terms[0] = $first; } /** * Tests title escaping. */ public function testTermWithDepthArgumentTitleEscaping() { $this->drupalGet('test_argument_taxonomy_index_tid_depth/' . $this->terms[0]->id()); $this->assertEscaped($this->terms[0]->label()); } }