Issue #2073197 by larowlan: Fixed Local actions 'add new forum|container' no longer found at admin/stucture/forums.
parent
5429044d5e
commit
95a13fe379
|
@ -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',
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue