public function DisplayTest::testDefaultDisplay

Tests that the correct display is loaded by default.

File

drupal/core/modules/views/lib/Drupal/views/Tests/UI/DisplayTest.php, line 136
Definition of Drupal\views\Tests\UI\DisplayTest.

Class

DisplayTest
Tests the handling of displays in the UI, adding removing etc.

Namespace

Drupal\views\Tests\UI

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.');
}