Issue #2073197 by larowlan: Fixed Local actions 'add new forum|container' no longer found at admin/stucture/forums.

8.0.x
Alex Pott 2013-08-29 13:48:14 +01:00
parent 5429044d5e
commit 95a13fe379
2 changed files with 5 additions and 0 deletions

View File

@ -134,11 +134,13 @@ function forum_menu() {
'title' => 'Add container',
'tab_parent' => 'admin/structure/forum',
'route_name' => 'forum_add_container',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/structure/forum/add/forum'] = array(
'tab_parent' => 'admin/structure/forum',
'title' => 'Add forum',
'route_name' => 'forum_add_forum',
'type' => MENU_LOCAL_ACTION,
);
$items['admin/structure/forum/settings'] = array(
'title' => 'Settings',

View File

@ -282,6 +282,9 @@ class ForumTest extends WebTestBase {
$this->forumContainer = $this->createForum('container');
// Verify "edit container" link exists and functions correctly.
$this->drupalGet('admin/structure/forum');
// Verify action links are there.
$this->assertLink('Add forum');
$this->assertLink('Add container');
$this->clickLink('edit container');
$this->assertRaw('Edit container', 'Followed the link to edit the container');
// Create forum inside the forum container.