public function DisplayPathTest::testDeleteWithNoPath in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views_ui/src/Tests/DisplayPathTest.php \Drupal\views_ui\Tests\DisplayPathTest::testDeleteWithNoPath()
Tests deleting a page display that has no path.
File
- core/
modules/ views_ui/ src/ Tests/ DisplayPathTest.php, line 112 - Contains \Drupal\views_ui\Tests\DisplayPathTest.
Class
- DisplayPathTest
- Tests the UI of generic display path plugin.
Namespace
Drupal\views_ui\TestsCode
public function testDeleteWithNoPath() {
$this
->drupalGet('admin/structure/views/view/test_view');
$this
->drupalPostForm(NULL, array(), t('Add Page'));
$this
->drupalPostForm(NULL, array(), t('Delete Page'));
$this
->drupalPostForm(NULL, array(), t('Save'));
$this
->assertRaw(t('The view %view has been saved.', array(
'%view' => 'Test view',
)));
}