public function TestMessenger::deleteAll in Rules 8.3
Deletes all messages.
Return value
string[]|\Drupal\Component\Render\MarkupInterface[] The deleted messages.
Overrides MessengerInterface::deleteAll
File
- tests/
src/ Unit/ TestMessenger.php, line 71
Class
- TestMessenger
- Mock class to replace the messenger service in unit tests.
Namespace
Drupal\Tests\rules\UnitCode
public function deleteAll() {
return $this->messages = NULL;
}