You are here

public function DisplayPageWebTest::testTitleOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Tests/Plugin/DisplayPageWebTest.php \Drupal\views\Tests\Plugin\DisplayPageWebTest::testTitleOutput()

Tests the title is not displayed in the output.

File

core/modules/views/src/Tests/Plugin/DisplayPageWebTest.php, line 137
Contains \Drupal\views\Tests\Plugin\DisplayPageWebTest.

Class

DisplayPageWebTest
Tests the views page display plugin as webtest.

Namespace

Drupal\views\Tests\Plugin

Code

public function testTitleOutput() {
  $this
    ->drupalGet('test_page_display_200');
  $view = Views::getView('test_page_display');
  $xpath = $this
    ->cssSelect('div.view:contains("' . $view
    ->getTitle() . '")');
  $this
    ->assertFalse($xpath, 'The view title was not displayed in the view markup.');
}