You are here

function ForumAccess00PlainTestCase::setUp in Forum Access 7

Implements setUp().

Overrides ForumTestCase::setUp

File

tests/forum_access.test, line 25

Class

ForumAccess00PlainTestCase
Functional tests for the Forum module, with Forum Access (and ACL) installed.

Code

function setUp($modules = array()) {
  parent::setUp();
  $modules = array(
    'devel',
  ) + $modules;
  $files = system_rebuild_module_data();
  $available_modules = array();
  foreach ($modules as $module) {
    if (!empty($files[$module]) && !module_exists($module)) {
      $available_modules[] = $module;
    }
  }
  if (!empty($available_modules)) {
    module_enable($available_modules);
  }
  parent::resetAll();
}