You are here

function ContentAccessModuleTestCase::setUp in Content Access 7

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

Preparation work that is done before each test. Test users, content types, nodes etc. are created.

Overrides ContentAccessTestCase::setUp

File

tests/content_access.test, line 23

Class

ContentAccessModuleTestCase

Code

function setUp($module = '') {
  parent::setUp();

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