public function ContentEntityTest::migrationConfigurationProvider in Drupal 9
Same name and namespace in other branches
- 8 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 492 
Class
- ContentEntityTest
- Tests the entity content source plugin.
Namespace
Drupal\Tests\migrate_drupal\Kernel\Plugin\migrate\sourceCode
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;
}