public function MigrateTestBase::display in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::display()
- 10 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\KernelCode
public function display($message, $type = 'status') {
if ($this->collectMessages) {
$this->migrateMessages[$type][] = $message;
}
else {
$this
->assertEquals('status', $type, $message);
}
}