function TestMessenger::addWarning

Overrides MessengerInterface::addWarning

File

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

Class

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

Namespace

Drupal\Tests\rules\Unit

Code

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