You are here

public function MessageCron::setUp in Message 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/MessageCron.php, line 46

Class

MessageCron
Test message purging upon cron.

Namespace

Drupal\Tests\message\Functional

Code

public function setUp() {
  parent::setUp();
  $this->purgeManager = $this->container
    ->get('plugin.manager.message.purge');
  $this->account = $this
    ->drupalCreateUser();
  $this->cron = $this->container
    ->get('cron');
  $this->timeService = $this->container
    ->get('datetime.time');
}