function TestMessenger::messagesByType
Overrides MessengerInterface::messagesByType
File
-
tests/
src/ Unit/ TestMessenger.php, line 62
Class
- TestMessenger
- Mock class to replace the messenger service in unit tests.
Namespace
Drupal\Tests\rules\UnitCode
public function messagesByType($type) {
if (!empty($type)) {
return $this->messages[$type] ?? [];
}
}