summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-03-25 21:12:26 (GMT)
committerwebchick2014-03-25 21:13:55 (GMT)
commit565f0663ea95b33c01b75692799e645439892976 (patch)
tree74ea02041dbde474cf8ae0865e7d0635f86b9039
parent28152037ae77dc4cce642d4d9209742629377bee (diff)
Issue #2209449 by andrei.dincu, miraj9093, sidharthap | ivanjaros: No message is displayed after View is deleted.
-rw-r--r--core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php2
-rw-r--r--core/modules/views_ui/lib/Drupal/views_ui/ViewDeleteFormController.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php b/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php
index e1036a0..53f0a17 100644
--- a/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php
+++ b/core/modules/views_ui/lib/Drupal/views_ui/Tests/ViewEditTest.php
@@ -38,9 +38,11 @@ class ViewEditTest extends UITestBase {
$this->drupalGet('admin/structure/views/view/test_view');
$this->assertLink(t('Delete view'), 0, 'Ensure that the view delete link appears');
+ $view = $this->container->get('entity.manager')->getStorageController('view')->load('test_view');
$this->clickLink(t('Delete view'));
$this->assertUrl('admin/structure/views/view/test_view/delete');
$this->drupalPostForm(NULL, array(), t('Delete'));
+ $this->assertRaw(t('View %name deleted', array('%name' => $view->label())));
$this->assertUrl('admin/structure/views');
$view = $this->container->get('entity.manager')->getStorageController('view')->load('test_view');
diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewDeleteFormController.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewDeleteFormController.php
index 4580db1..22a4d68 100644
--- a/core/modules/views_ui/lib/Drupal/views_ui/ViewDeleteFormController.php
+++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewDeleteFormController.php
@@ -45,6 +45,7 @@ class ViewDeleteFormController extends EntityConfirmFormBase {
$this->entity->delete();
$form_state['redirect_route']['route_name'] = 'views_ui.list';
+ drupal_set_message($this->t('View %name deleted',array('%name' => $this->entity->label())));
}
}