You are here

protected function MigrateMediaTestBase::getMissingPaths in Media Migration 8

Gets the missing upgrade paths.

Return value

string[] An array of missing upgrade paths.

Overrides MigrateUpgradeTestBase::getMissingPaths

1 call to MigrateMediaTestBase::getMissingPaths()
MigrateMediaTestBase::assertMigrateUpgradeViaUi in tests/src/Functional/MigrateMediaTestBase.php
Executes the upgrade process by the UI and asserts basic expectations.

File

tests/src/Functional/MigrateMediaTestBase.php, line 377

Class

MigrateMediaTestBase
Provides a base class for testing media migration via the UI.

Namespace

Drupal\Tests\media_migration\Functional

Code

protected function getMissingPaths() {
  $missing_paths = [
    'media',
    'media_internet',
    'media_vimeo',
    'media_wysiwyg',
    'media_youtube',
    'views',
    'wysiwyg',
  ];

  // No idea why, but Drupal 9 threats available/missing migration paths
  // different than prior versions.
  if (version_compare(\Drupal::VERSION, '9.0', '>=')) {
    $missing_paths[] = 'file_entity';
  }

  // Drupal 9.1+ checks the human name of the modules.
  if (version_compare(\Drupal::VERSION, '9.1', '>=')) {
    $missing_paths = [
      'File Entity',
      'Media',
      'Media Internet Sources',
      'Media WYSIWYG',
      'Media: Vimeo',
      'Media: YouTube',
      'Views',
      'Wysiwyg',
    ];
  }
  return $missing_paths;
}