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