class TaxonomyDefaultArgumentTest

Same name in this branch
  1. 9 core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyDefaultArgumentTest.php \Drupal\Tests\taxonomy\Kernel\Views\TaxonomyDefaultArgumentTest
Same name and namespace in other branches
  1. 11.x core/modules/taxonomy/tests/src/Kernel/Views/TaxonomyDefaultArgumentTest.php \Drupal\Tests\taxonomy\Kernel\Views\TaxonomyDefaultArgumentTest
  2. 11.x core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php \Drupal\Tests\taxonomy\Functional\Views\TaxonomyDefaultArgumentTest

Tests the representative node relationship for terms.

@group taxonomy

Hierarchy

Expanded class hierarchy of TaxonomyDefaultArgumentTest

File

core/modules/taxonomy/tests/src/Functional/Views/TaxonomyDefaultArgumentTest.php, line 10

Namespace

Drupal\Tests\taxonomy\Functional\Views
View source
class TaxonomyDefaultArgumentTest extends TaxonomyTestBase {
  
  /**
   * Views used by this test.
   *
   * @var array
   */
  public static $testViews = [
    'taxonomy_default_argument_test',
  ];
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * Tests escaping of page title when the taxonomy plugin provides it.
   */
  public function testTermTitleEscaping() {
    $this->term1
      ->setName('<em>Markup</em>')
      ->save();
    $this->drupalGet('taxonomy_default_argument_test/' . $this->term1
      ->id());
    $this->assertSession()
      ->assertEscaped($this->term1
      ->label());
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.