You are here

protected function SimplenewsI18nTest::setUp in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/SimplenewsI18nTest.php \Drupal\Tests\simplenews\Functional\SimplenewsI18nTest::setUp()

Overrides SimplenewsTestBase::setUp

File

tests/src/Functional/SimplenewsI18nTest.php, line 51

Class

SimplenewsI18nTest
Translation of newsletters and issues.

Namespace

Drupal\Tests\simplenews\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->drupalCreateUser([
    'bypass node access',
    'administer nodes',
    'administer languages',
    'administer content types',
    'access administration pages',
    'administer filters',
    'translate interface',
    'subscribe to newsletters',
    'administer site configuration',
    'translate any entity',
    'administer content translation',
    'administer simplenews subscriptions',
    'send newsletter',
    'create content translations',
  ]);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->setUpLanguages();
}