function ContentAccessModuleTestCase::setUp in Content Access 6
Same name and namespace in other branches
- 5 tests/content_access.test \ContentAccessModuleTestCase::setUp()
- 7 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() {
parent::setUp();
// Create test nodes
$this->node1 = $this
->drupalCreateNode(array(
'type' => $this->content_type_name,
));
$this->node2 = $this
->drupalCreateNode(array(
'type' => $this->content_type_name,
));
}