You are here

public function MigrateTestBase::display in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::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

File

core/modules/migrate/tests/src/Kernel/MigrateTestBase.php, line 203

Class

MigrateTestBase
Creates abstract base class for migration tests.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function display($message, $type = 'status') {
  if ($this->collectMessages) {
    $this->migrateMessages[$type][] = $message;
  }
  else {
    $this
      ->assert($type == 'status', $message, 'migrate');
  }
}