You are here

protected function oa_coreBaseWebTest::createNodeInOaSpace in Open Atrium Core 7.2

7 calls to oa_coreBaseWebTest::createNodeInOaSpace()
oa_coreSmoke::test_oa_smoke in tests/oa_coreSmoke.test
oa_sectionsAccess::test_oa_sectionsAccess in modules/oa_sections/tests/oa_sectionsAccess.test
oa_sectionsAccessBase::oaTestOaSectionAccess in modules/oa_sections/tests/oa_sectionsAccessBase.test
Tests access to sections.
oa_sectionsNodeAccessBase::oaTestOaSectionAccess in modules/oa_sections/tests/oa_sectionsNodeAccessBase.test
Tests access to section nodes.
oa_sectionsNodePrivateAccess::test_oa_sectionsPrivateAccess in modules/oa_sections/tests/oa_sectionsNodePrivateAccess.test

... See full list

File

tests/oa_coreBase.test, line 31
Provides a base unit test class.

Class

oa_coreBaseWebTest
Base class for testing openatrium web interaction.

Code

protected function createNodeInOaSpace($space, $node_info) {
  $node_info['og_group_ref'][LANGUAGE_NONE][0]['target_id'] = $space->nid;
  $node = $this
    ->drupalCreateNode($node_info);
  og_group('node', $space, array(
    'entity' => $node,
  ));
  return $node;
}