You are here

public function EmailTest::setUp in Message Notify 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/Notifier/EmailTest.php, line 77

Class

EmailTest
Unit tests for the Email notifier.

Namespace

Drupal\Tests\message_notify\Unit\Plugin\Notifier

Code

public function setUp() {
  parent::setUp();
  $this->entityTypeManager = $this
    ->prophesize(EntityTypeManagerInterface::class)
    ->reveal();
  $this->mailManager = $this
    ->prophesize(MailManagerInterface::class)
    ->reveal();
  $this->renderer = $this
    ->prophesize(RendererInterface::class)
    ->reveal();
  $this->pluginId = $this
    ->randomMachineName();
  $this->pluginDefinition['title'] = $this
    ->randomMachineName();
}