public function ContentLanguageAccessTestCase::setUp in Content Language Access 6
Same name and namespace in other branches
- 7 content_language_access.test \ContentLanguageAccessTestCase::setUp()
Implements setUp().
Overrides DrupalWebTestCase::setUp
File
- ./
content_language_access.test, line 24 - Test suite for content language access module
Class
- ContentLanguageAccessTestCase
- @file Test suite for content language access module
Code
public function setUp() {
parent::setUp('node', 'locale', 'content_language_access');
$this->admin_user = $this
->drupalCreateUser(array(
'administer languages',
'administer site configuration',
'access administration pages',
'administer content types',
'administer nodes',
'administer users',
));
$this->visitor = $this
->drupalCreateUser(array(
'access content',
));
$this
->configureLanguages();
$this
->createContentType();
$this
->createContents();
}