function MigrateTestBase::display

Same name in other branches
  1. 9 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::display()
  2. 10 core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::display()
  3. 11.x core/modules/migrate/tests/src/Kernel/MigrateTestBase.php \Drupal\Tests\migrate\Kernel\MigrateTestBase::display()

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');
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.