You are here

protected function SystemMessageTest::setUp in Rules 8.3

Overrides RulesIntegrationTestBase::setUp

File

tests/src/Unit/Integration/RulesAction/SystemMessageTest.php, line 24

Class

SystemMessageTest
@coversDefaultClass \Drupal\rules\Plugin\RulesAction\SystemMessage @group RulesAction

Namespace

Drupal\Tests\rules\Unit\Integration\RulesAction

Code

protected function setUp() : void {
  parent::setUp();
  $this->action = $this->actionManager
    ->createInstance('rules_system_message');

  // Clear the statically stored messages before every test run.
  $this->messenger
    ->deleteAll();
}