You are here

public function DaysTest::setUp in Message 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Plugin/MessagePurge/DaysTest.php, line 47

Class

DaysTest
Integration tests for the 'days' purge plugin.

Namespace

Drupal\Tests\message\Kernel\Plugin\MessagePurge

Code

public function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('message');
  $this->template = MessageTemplate::create([
    'template' => 'foo',
  ]);
  $this->template
    ->save();
  $this->timeService = $this->container
    ->get('datetime.time');
}