You are here

protected function MailHandlerThemeTest::setUp in Commerce Core 8.2

Overrides CommerceKernelTestBase::setUp

File

tests/src/Kernel/MailHandlerThemeTest.php, line 44

Class

MailHandlerThemeTest
Tests sending emails using the MailSystem mail theme setting.

Namespace

Drupal\Tests\commerce\Kernel

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'mailsystem',
  ]);
  \Drupal::service('theme_installer')
    ->install([
    'commerce_test_theme',
  ]);
  $this->mailHandler = $this->container
    ->get('commerce.mail_handler');
  $this->user = $this
    ->createUser([
    'mail' => 'customer@example.com',
  ]);
}