protected function DevelMailLogTest::setUp in Devel 8
Same name and namespace in other branches
- 8.3 tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()
- 8.2 tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()
- 4.x tests/src/Kernel/DevelMailLogTest.php \Drupal\Tests\devel\Kernel\DevelMailLogTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ DevelMailLogTest.php, line 33
Class
- DevelMailLogTest
- Tests sending mails with debug interface.
Namespace
Drupal\Tests\devel\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('system', 'mail');
$this
->installConfig([
'system',
'devel',
]);
// Configure system.site mail settings.
$this
->config('system.site')
->set('mail', 'devel-test@example.com')
->save();
$this->mailManager = $this->container
->get('plugin.manager.mail');
}