public function DisplayPath::testDeleteWithNoPath

Tests deleting a page display that has no path.

File

drupal/core/modules/views_ui/lib/Drupal/views_ui/Tests/DisplayPath.php, line 50
Contains \Drupal\views_ui\Tests\DisplayPath

Class

DisplayPath
Tests the UI of generic display path plugin.

Namespace

Drupal\views_ui\Tests

Code

public function testDeleteWithNoPath() {
  $this
    ->drupalGet('admin/structure/views/view/test_view');
  $this
    ->drupalPost(NULL, array(), t('Add Page'));
  $this
    ->drupalPost(NULL, array(), t('Delete Page'));
  $this
    ->drupalPost(NULL, array(), t('Save'));
  $this
    ->assertRaw(t('The view %view has been saved.', array(
    '%view' => 'Test view',
  )));
}