You are here

function ContentAccessACLTestCase::setUp in Content Access 7

Same name and namespace in other branches
  1. 5 tests/content_access_acl.test \ContentAccessACLTestCase::setUp()
  2. 6 tests/content_access_acl.test \ContentAccessACLTestCase::setUp()

Setup configuration before each test

Overrides ContentAccessTestCase::setUp

File

tests/content_access_acl.test, line 29

Class

ContentAccessACLTestCase

Code

function setUp($addedmodules = array()) {
  $modules = array(
    'acl',
  );
  $addedmodules = array_merge($modules, $addedmodules);
  parent::setUp($addedmodules);
  if (!module_exists('acl')) {
    $this
      ->pass('No ACL module present, skipping test');
    return;
  }

  // Create test nodes
  $this->node = $this
    ->drupalCreateNode(array(
    'type' => $this->content_type->type,
  ));
}