Commit 565f0663 authored by webchick's avatar webchick

Issue #2209449 by andrei.dincu, miraj9093, sidharthap | ivanjaros: No message...

Issue #2209449 by andrei.dincu, miraj9093, sidharthap | ivanjaros: No message is displayed after View is deleted.
parent 28152037
......@@ -38,9 +38,11 @@ public function testDeleteLink() {
$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');
......
......@@ -45,6 +45,7 @@ public function submit(array $form, array &$form_state) {
$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())));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment