protected function SimplenewsI18nTest::setUp in Simplenews 8.2
Same name and namespace in other branches
- 3.x 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\FunctionalCode
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();
}