You are here

public function OpenAtriumAccessBaseTestCase::setUp in Open Atrium Core 7.2

1 call to OpenAtriumAccessBaseTestCase::setUp()
OpenAtriumAccessTestCase::setUp in modules/oa_access/tests/oa_access.test
1 method overrides OpenAtriumAccessBaseTestCase::setUp()
OpenAtriumAccessTestCase::setUp in modules/oa_access/tests/oa_access.test

File

modules/oa_access/tests/oa_access.test, line 21
Functional tests for the Open Atrium Access module.

Class

OpenAtriumAccessBaseTestCase

Code

public function setUp($modules = array()) {

  // TODO: This is how it should look for DrupalWebTestCase!
  //

  //parent::setUp(array_merge(array(

  //  // Without oa_sections, we'll get a Table 'field_data_field_oa_user_ref'
  //  // doesn't exist error. Although, we don't actually use Sections here. :-)
  //  'oa_sections',
  //  'oa_teams',
  //  'oa_access',

  //), $modules));

  // However, since we're using SimpleTestCloneTestCase, we need to use this
  // instead.
  parent::setUp();
  module_enable($modules);

  // Since we're not enabling oa_home, we need to make sure the front page
  // exists, or $this->drupalLogin() will fail from the 404.
  variable_set('site_frontpage', 'user');

  // Flush all static caches.
  drupal_static_reset();
}