You are here

public function DisplayCRUDTest::testDefaultDisplay in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views_ui/src/Tests/DisplayCRUDTest.php \Drupal\views_ui\Tests\DisplayCRUDTest::testDefaultDisplay()

Tests that the correct display is loaded by default.

File

core/modules/views_ui/src/Tests/DisplayCRUDTest.php, line 94
Contains \Drupal\views_ui\Tests\DisplayCRUDTest.

Class

DisplayCRUDTest
Tests creation, retrieval, updating, and deletion of displays in the Web UI.

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