public function DisplayTest::testDefaultDisplay

Tests that the correct display is loaded by default.

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayTest.php, line 146
Contains \Drupal\views_ui\Tests\DisplayTest.

Class

DisplayTest

Namespace

Drupal\views_ui\Tests

Code

public function testDefaultDisplay() {
  $this
    ->drupalGet('admin/structure/views/view/test_display');
  $elements = $this
    ->xpath('//*[@id="views-page-1-display-title"]');
  $this
    ->assertEqual(count($elements), 1, 'The page display is loaded as the default display.');
}