You are here

protected function oa_coreBaseWebTest::createOaSpaceAndUsers in Open Atrium Core 7.2

6 calls to oa_coreBaseWebTest::createOaSpaceAndUsers()
oa_corePermissionWeb::test_oa_sectionsAccess in tests/oa_corePermissionWeb.test
oa_coreSmoke::test_oa_smoke in tests/oa_coreSmoke.test
oa_sectionsAccess::test_oa_sectionsAccess in modules/oa_sections/tests/oa_sectionsAccess.test
oa_sectionsNodePrivateAccess::test_oa_sectionsPrivateAccess in modules/oa_sections/tests/oa_sectionsNodePrivateAccess.test
oa_sectionsNodePublicAccess::test_oa_sectionsPrivateAccess in modules/oa_sections/tests/oa_sectionsNodePublicAccess.test

... See full list

File

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

Class

oa_coreBaseWebTest
Base class for testing openatrium web interaction.

Code

protected function createOaSpaceAndUsers($space_info = array(), $admin_permissions = array()) {
  $admin = $this
    ->drupalCreateUser($admin_permissions ? $admin_permissions : array(
    'create oa_space content',
    'create oa_section content',
    'edit any oa_section content',
  ));
  $space = $this
    ->createOaSpace($space_info + array(
    'uid' => $admin->uid,
  ));
  return array(
    'space' => $space,
    'space_member' => $this
      ->createUserInOaSpace($space),
    'space_admin' => $admin,
  );
}