You are here

public function MigrateMessageTest::display in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php \Drupal\Tests\migrate\Kernel\MigrateMessageTest::display()

Displays a migrate message.

Parameters

string $message: The message to display.

string $type: The type of message, for example: status or warning.

Overrides MigrateMessageInterface::display

1 call to MigrateMessageTest::display()
MigrateMessageTest::mapMessageRecorder in core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php
Reacts to map message event.

File

core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php, line 148

Class

MigrateMessageTest
Tests whether idmap messages are sent to message interface when requested.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function display($message, $type = 'status') {
  $this->messages[] = $message;
}