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