public function MediaMigrationPlainFormatterWidgetTest::providerTestCases in Media Migration 8
Data provider for ::testMediaTokenToMediaEmbedTransform().
Return value
array The test cases.
File
- tests/
src/ Kernel/ Migrate/ MediaMigrationPlainFormatterWidgetTest.php, line 144
Class
- MediaMigrationPlainFormatterWidgetTest
- Tests widgets and formatters migrated from plain sources.
Namespace
Drupal\Tests\media_migration\Kernel\MigrateCode
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;
}