You are here

protected function og_menu_singleMenuItemNodeCreateTest::createPostInGroup in OG Menu Single 7

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

File

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

Class

og_menu_singleMenuItemNodeCreateTest

Code

protected function createPostInGroup($group, $account, $type = 'post') {
  $settings = array(
    'type' => 'post',
    'uid' => $account->uid,
  );
  $node = $this
    ->drupalCreateNode($settings);
  og_group('node', $group->nid, array(
    'entity_type' => 'node',
    'entity' => $node,
  ));
  return $node;
}