function DrupalSqlBaseTest::providerMinimumVersion

Same name in other branches
  1. 9 core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\DrupalSqlBaseTest::providerMinimumVersion()
  2. 11.x core/modules/migrate_drupal/tests/src/Unit/source/DrupalSqlBaseTest.php \Drupal\Tests\migrate_drupal\Unit\source\DrupalSqlBaseTest::providerMinimumVersion()

Provides data for testMinimumVersion.

File

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

Class

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

Namespace

Drupal\Tests\migrate_drupal\Unit\source

Code

public static 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',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.