public function DisplayCRUDTest::testDefaultDisplay in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php \Drupal\Tests\views_ui\Functional\DisplayCRUDTest::testDefaultDisplay()
- 10 core/modules/views_ui/tests/src/Functional/DisplayCRUDTest.php \Drupal\Tests\views_ui\Functional\DisplayCRUDTest::testDefaultDisplay()
Tests that the correct display is loaded by default.
File
- core/
modules/ views_ui/ tests/ src/ Functional/ DisplayCRUDTest.php, line 104
Class
- DisplayCRUDTest
- Tests creation, retrieval, updating, and deletion of displays in the Web UI.
Namespace
Drupal\Tests\views_ui\FunctionalCode
public function testDefaultDisplay() {
$this
->drupalGet('admin/structure/views/view/test_display');
$elements = $this
->xpath('//*[@id="views-page-1-display-title"]');
$this
->assertCount(1, $elements, 'The page display is loaded as the default display.');
}