protected function SimplenewsSendTest::setUp in Simplenews 8.2
Same name and namespace in other branches
- 3.x tests/src/Functional/SimplenewsSendTest.php \Drupal\Tests\simplenews\Functional\SimplenewsSendTest::setUp()
Overrides SimplenewsTestBase::setUp
File
- tests/
src/ Functional/ SimplenewsSendTest.php, line 20
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);
}