protected function I18nBookNavigationMenuBlockTestCase::configureAndEnableMenuBlock in Book translation 7.2
Set up the i18n_book_navigation menu_block.
1 call to I18nBookNavigationMenuBlockTestCase::configureAndEnableMenuBlock()
- I18nBookNavigationMenuBlockTestCase::testMenuBlockIntegration in tests/
i18n_book_navigation.test - Test menu_block integration.
File
- tests/
i18n_book_navigation.test, line 598 - Unit tests for the Book translation module.
Class
Code
protected function configureAndEnableMenuBlock($menu_name) {
$this
->drupalGet('admin/structure/block/add-menu-block');
$edit = array(
'title' => 'Menu Block',
'admin_title' => 'Menu Block',
'menu_name' => $menu_name,
'parent' => "{$menu_name}:0",
'regions[bartik]' => 'sidebar_first',
);
$this
->drupalPost('admin/structure/block/add-menu-block', $edit, t("Save block"));
}