You are here

public function UpdaterTest::providerInvalidProjectVersions in Automatic Updates 8.2

Data provider for testInvalidProjectVersions().

Return value

array The test cases for testInvalidProjectVersions().

File

tests/src/Kernel/UpdaterTest.php, line 72

Class

UpdaterTest
@coversDefaultClass \Drupal\automatic_updates\Updater

Namespace

Drupal\Tests\automatic_updates\Kernel

Code

public function providerInvalidProjectVersions() : array {
  return [
    'only not drupal' => [
      [
        'not_drupal' => '1.1.3',
      ],
    ],
    'not drupal and drupal' => [
      [
        'drupal' => '9.8.0',
        'not_drupal' => '1.2.3',
      ],
    ],
    'empty' => [
      [],
    ],
  ];
}