protected function SimplenewsUninstallTest::setUp in Simplenews 8.2
Same name and namespace in other branches
- 3.x tests/src/Functional/SimplenewsUninstallTest.php \Drupal\Tests\simplenews\Functional\SimplenewsUninstallTest::setUp()
Overrides SimplenewsTestBase::setUp
File
- tests/
src/ Functional/ SimplenewsUninstallTest.php, line 15
Class
- SimplenewsUninstallTest
- Tests that Simplenews module can be uninstalled.
Namespace
Drupal\Tests\simplenews\FunctionalCode
protected function setUp() {
parent::setUp();
\Drupal::service('module_installer')
->uninstall([
'simplenews_test',
]);
$admin_user = $this
->drupalCreateUser([
'administer nodes',
'administer simplenews settings',
'administer simplenews subscriptions',
'create simplenews_issue content',
'administer modules',
]);
$this
->drupalLogin($admin_user);
// Subscribe a user.
$this
->setUpSubscribers(1);
}