You are here

public function DigestTest::setUp in Message Digest 8

Overrides UnitTestCase::setUp

File

tests/src/Unit/Plugin/Notifier/DigestTest.php, line 86

Class

DigestTest
Tests the Digest plugin.

Namespace

Drupal\Tests\message_digest\Unit\Plugin\Notifier

Code

public function setUp() {
  parent::setUp();
  $this->connection = $this
    ->prophesize(Connection::class)
    ->reveal();
  $this->entityTypeManager = $this
    ->prophesize(EntityTypeManagerInterface::class)
    ->reveal();
  $this->pluginId = $this
    ->randomMachineName();
  $this->renderer = $this
    ->prophesize(RendererInterface::class)
    ->reveal();
  $this->time = $this
    ->prophesize(TimeInterface::class)
    ->reveal();
  $this->state = $this
    ->prophesize(StateInterface::class)
    ->reveal();
}