You are here

public function MigrateTestBase::startCollectingMessages in Drupal 9

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

Start collecting messages and erase previous messages.

11 calls to MigrateTestBase::startCollectingMessages()
MigrateCommentTypeTest::testNoCommentTypeMigration in core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTypeTest.php
Tests comment type migration without node or / and comment on source.
MigrateCommentTypeTest::testNoCommentTypeMigration in core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTypeTest.php
Tests comment type migration without node or / and comment on source.
MigrateDefaultLanguageTest::testMigrationWithExistingLanguage in core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php
Tests language_default migration with an existing language.
MigrateDefaultLanguageTest::testMigrationWithExistingLanguage in core/modules/language/tests/src/Kernel/Migrate/d7/MigrateDefaultLanguageTest.php
Tests language_default migration with a non-existing language.
MigrateDefaultLanguageTest::testMigrationWithNonExistentLanguage in core/modules/language/tests/src/Kernel/Migrate/d6/MigrateDefaultLanguageTest.php
Tests language_default migration with a non-existing language.

... See full list

File

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

Class

MigrateTestBase
Creates abstract base class for migration tests.

Namespace

Drupal\Tests\migrate\Kernel

Code

public function startCollectingMessages() {
  $this->collectMessages = TRUE;
  $this->migrateMessages = [];
}