public function DisplayPageWebTest::testTitleOutput in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/Plugin/DisplayPageWebTest.php \Drupal\Tests\views\Functional\Plugin\DisplayPageWebTest::testTitleOutput()
Tests the title is not displayed in the output.
File
- core/
modules/ views/ tests/ src/ Functional/ Plugin/ DisplayPageWebTest.php, line 132
Class
- DisplayPageWebTest
- Tests the views page display plugin as webtest.
Namespace
Drupal\Tests\views\Functional\PluginCode
public function testTitleOutput() {
$this
->drupalGet('test_page_display_200');
$view = Views::getView('test_page_display');
$xpath = $this
->cssSelect('div.view:contains("' . $view
->getTitle() . '")');
$this
->assertEmpty($xpath, 'The view title was not displayed in the view markup.');
}