You are here

public function ContentLanguageAccessTestBase::setUp in Content Language Access 8

Implements setUp().

Overrides BrowserTestBase::setUp

1 call to ContentLanguageAccessTestBase::setUp()
ContentLanguageAccessContentDetectionEnabledTest::setUp in src/Tests/ContentLanguageAccessContentDetectionEnabledTest.php
Implements setUp().
1 method overrides ContentLanguageAccessTestBase::setUp()
ContentLanguageAccessContentDetectionEnabledTest::setUp in src/Tests/ContentLanguageAccessContentDetectionEnabledTest.php
Implements setUp().

File

src/Tests/ContentLanguageAccessTestBase.php, line 62

Class

ContentLanguageAccessTestBase
Test the features of content_language_access module.

Namespace

Drupal\content_language_access\Tests

Code

public function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer languages',
    'administer site configuration',
    'access administration pages',
    'administer content types',
    'administer nodes',
    'administer users',
  ]);
  $this->visitor = $this
    ->drupalCreateUser([
    'access content',
  ]);
  $this->languages = Drupal::languageManager()
    ->getLanguages();
  $this
    ->configureLanguages();
  $this
    ->createContentType();
  $this
    ->createContents();
}