You are here

public function ContentEntityTest::migrationConfigurationProvider in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php \Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::migrationConfigurationProvider()
  2. 9 core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php \Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::migrationConfigurationProvider()

Data provider for several test methods.

See also

\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testUserSource

\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testFileSource

\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testNodeSource

\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testMediaSource

\Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source\ContentEntityTest::testTermSource

File

core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php, line 436

Class

ContentEntityTest
Tests the entity content source plugin.

Namespace

Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\source

Code

public function migrationConfigurationProvider() {
  $data = [];
  foreach ([
    FALSE,
    TRUE,
  ] as $include_translations) {
    foreach ([
      FALSE,
      TRUE,
    ] as $add_revision_id) {
      $configuration = [
        'include_translations' => $include_translations,
        'add_revision_id' => $add_revision_id,
      ];

      // Add an array key for this data set.
      $data[http_build_query($configuration)] = [
        $configuration,
      ];
    }
  }
  return $data;
}