You are here

public function ContentLanguageAccessTestCase::setUp in Content Language Access 7

Same name and namespace in other branches
  1. 6 content_language_access.test \ContentLanguageAccessTestCase::setUp()

Implements setUp().

Overrides DrupalWebTestCase::setUp

File

./content_language_access.test, line 27
Test suite for content language access module.

Class

ContentLanguageAccessTestCase
Defines the content language access test class.

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();
}