function ContentAccessModuleTestCase::setUp in Content Access 7
Same name and namespace in other branches
- 5 tests/content_access.test \ContentAccessModuleTestCase::setUp()
- 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
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,
));
}