You are here

public function MediaMigrationFormatterWidgetTest::providerTestCases in Media Migration 8

Data provider for ::testMediaTokenToMediaEmbedTransform().

Return value

array The test cases.

File

tests/src/Kernel/Migrate/MediaMigrationFormatterWidgetTest.php, line 182

Class

MediaMigrationFormatterWidgetTest
Tests widgets and formatters.

Namespace

Drupal\Tests\media_migration\Kernel\Migrate

Code

public function providerTestCases() {
  $test_cases = [
    'Classic node migration' => [
      'Classic node migration' => TRUE,
    ],
    'Complete node migration' => [
      'Classic node migration' => FALSE,
    ],
  ];

  // Drupal 8.8.x only has 'classic' node migrations.
  // @see https://www.drupal.org/node/3105503
  if (version_compare(\Drupal::VERSION, '8.9', '<')) {
    $test_cases = array_filter($test_cases, function ($test_case) {
      return $test_case['Classic node migration'];
    });
  }
  return $test_cases;
}