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\UnitCode
public function addWarning($message, $repeat = FALSE) {
return $this->addMessage($message, static::TYPE_WARNING, $repeat);
}