protected function SimplenewsSendTest::setUp in Simplenews 3.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/SimplenewsSendTest.php \Drupal\Tests\simplenews\Functional\SimplenewsSendTest::setUp()
Overrides SimplenewsTestBase::setUp
File
- tests/
src/ Functional/ SimplenewsSendTest.php, line 21
Class
- SimplenewsSendTest
- Test cases for creating and sending newsletters.
Namespace
Drupal\Tests\simplenews\FunctionalCode
protected function setUp() {
parent::setUp();
$admin_user = $this
->drupalCreateUser([
'administer newsletters',
'send newsletter',
'administer nodes',
'administer simplenews subscriptions',
'create simplenews_issue content',
'edit any simplenews_issue content',
'view own unpublished content',
'delete any simplenews_issue content',
]);
$this
->drupalLogin($admin_user);
// Subscribe a few users.
$this
->setUpSubscribers(5);
}