function TestMessenger::addError

Overrides MessengerInterface::addError

File

tests/src/Unit/TestMessenger.php, line 41

Class

TestMessenger
Mock class to replace the messenger service in unit tests.

Namespace

Drupal\Tests\rules\Unit

Code

public function addError($message, $repeat = FALSE) {
    return $this->addMessage($message, static::TYPE_ERROR, $repeat);
}