You are here

public function MigrateTestBase::display in Drupal 10

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

File

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

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
      ->assertEquals('status', $type, $message);
  }
}