public function DisplayTest::testDefaultDisplay in Views (for Drupal 7) 8.3
Tests that the correct display is loaded by default.
File
- lib/
Drupal/ views/ Tests/ UI/ DisplayTest.php, line 128 - Definition of Drupal\views\Tests\UI\DisplayTest.
Class
- DisplayTest
- Tests the handling of displays in the UI, adding removing etc.
Namespace
Drupal\views\Tests\UICode
public function testDefaultDisplay() {
$this
->drupalGet('admin/structure/views/view/test_display');
$elements = $this
->xpath('//*[@id="views-page-display-title"]');
$this
->assertEqual(count($elements), 1, 'The page display is loaded as the default display.');
}