You are here

protected function MediaMigrationTestBase::setClassicNodeMigration in Media Migration 8

Sets the type of the node migration.

Parameters

bool $classic_node_migration: Whether nodes should be migrated with the 'classic' way. If this is FALSE, and the current Drupal instance has the 'complete' migration, then the complete node migration will be used.

6 calls to MediaMigrationTestBase::setClassicNodeMigration()
MediaMigrationFormatterWidgetTest::testWidgetsAndFormattersWithMediaLibrary in tests/src/Kernel/Migrate/MediaMigrationFormatterWidgetTest.php
Tests media widgets' and formatters' migration with Media Library.
MediaMigrationFormatterWidgetTest::testWidgetsAndFormattersWithoutMediaLibrary in tests/src/Kernel/Migrate/MediaMigrationFormatterWidgetTest.php
Tests media widgets' and formatters' migration without Media Library.
MediaMigrationPlainFormatterWidgetTest::testWidgetsAndFormattersWithMediaLibrary in tests/src/Kernel/Migrate/MediaMigrationPlainFormatterWidgetTest.php
Tests media widgets' and formatters' migration with Media Library.
MediaMigrationPlainFormatterWidgetTest::testWidgetsAndFormattersWithoutMediaLibrary in tests/src/Kernel/Migrate/MediaMigrationPlainFormatterWidgetTest.php
Tests media widgets' and formatters' migration without Media Library.
MediaMigrationPlainTest::testPlainFileToMediaMigration in tests/src/Kernel/Migrate/MediaMigrationPlainTest.php
Tests the migration of plain file and image fields to media reference.

... See full list

File

tests/src/Kernel/Migrate/MediaMigrationTestBase.php, line 94

Class

MediaMigrationTestBase
Base class for Media Migration kernel tests.

Namespace

Drupal\Tests\media_migration\Kernel\Migrate

Code

protected function setClassicNodeMigration(bool $classic_node_migration) {
  $current_method = Settings::get('migrate_node_migrate_type_classic', FALSE);
  if ($current_method !== $classic_node_migration) {
    $this
      ->setSetting('migrate_node_migrate_type_classic', $classic_node_migration);
  }
}