You are here

public function DrupalSqlBaseTest::providerMinimumVersion in Drupal 9

Provides data for testMinimumVersion.

File

core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php, line 134

Class

DrupalSqlBaseTest
@coversDefaultClass \Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase @group migrate_drupal

Namespace

Drupal\Tests\migrate_drupal\Unit\source

Code

public function providerMinimumVersion() {
  return [
    'minimum less than schema' => [
      TRUE,
      '7000',
      '7001',
    ],
    'same version' => [
      TRUE,
      '7001',
      '7001',
    ],
    'minimum greater than schema' => [
      FALSE,
      '7005',
      '7001',
    ],
    'schema version 0' => [
      FALSE,
      '7000',
      '0',
    ],
    'schema version -1' => [
      FALSE,
      '7000',
      '-1',
    ],
    'minimum not set' => [
      TRUE,
      NULL,
      '-1',
    ],
  ];
}