You are here

protected function og_menu_singleMenuItemNodeCreateTest::addPostToMenu in OG Menu Single 7

1 call to og_menu_singleMenuItemNodeCreateTest::addPostToMenu()
og_menu_singleMenuItemNodeCreateTest::testMenuLinkCreated in tests/og_menu_singleBase.test
Test skipping OgBehaviorHandler.

File

tests/og_menu_singleBase.test, line 123
Provides a base unit test class.

Class

og_menu_singleMenuItemNodeCreateTest

Code

protected function addPostToMenu($post, $mlid) {
  $edit = array(
    'menu[enabled]' => TRUE,
    'menu[link_title]' => $post->title,
    'menu[parent]' => OG_MENU_SINGLE_MENU_NAME . ':' . $mlid,
  );
  $this
    ->drupalPost('node/' . $post->nid . '/edit', $edit, t('Save'));
}