You are here

public function TestMessenger::all in Ubercart 8.4

Gets all messages.

Return value

string[][]|\Drupal\Component\Render\MarkupInterface[][] Keys are message types and values are indexed arrays of messages. Message types are either self::TYPE_STATUS, self::TYPE_WARNING, or self::TYPE_ERROR.

Overrides MessengerInterface::all

File

uc_cart_links/tests/src/Unit/TestMessenger.php, line 50

Class

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

Namespace

Drupal\Tests\uc_cart_links\Unit

Code

public function all() {
  return $this->messages;
}