You are here

public function MigrateMessageTest::testMessagesNotTeed in Drupal 9

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

Tests migration interruptions.

File

core/modules/migrate/tests/src/Kernel/MigrateMessageTest.php, line 80

Class

MigrateMessageTest
Tests whether idmap messages are sent to message interface when requested.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function testMessagesNotTeed() {

  // We don't ask for messages to be teed, so don't expect any.
  $executable = new MigrateExecutable($this->migration, $this);
  $executable
    ->import();
  $this
    ->assertCount(0, $this->messages);
}