You are here

public function MigrateTestBase::display in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Tests/MigrateTestBase.php \Drupal\migrate\Tests\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/src/Tests/MigrateTestBase.php, line 178
Contains \Drupal\migrate\Tests\MigrateTestBase.

Class

MigrateTestBase
Base class for migration tests.

Namespace

Drupal\migrate\Tests

Code

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