You are here

public function ExtensionListTest::providerCheckIncompatibility in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::providerCheckIncompatibility()
  2. 10 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::providerCheckIncompatibility()

DataProvider for testCheckIncompatibility().

File

core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php, line 221

Class

ExtensionListTest
@coversDefaultClass \Drupal\Core\Extension\ExtensionList @group Extension

Namespace

Drupal\Tests\Core\Extension

Code

public function providerCheckIncompatibility() {
  return [
    'core_incompatible true' => [
      [
        'core_incompatible' => TRUE,
      ],
      TRUE,
    ],
    'core_incompatible false' => [
      [
        'core_incompatible' => FALSE,
      ],
      FALSE,
    ],
    'PHP 1, core_incompatible FALSE' => [
      [
        'core_incompatible' => FALSE,
        'php' => 1,
      ],
      FALSE,
    ],
    'PHP 1000000000000, core_incompatible FALSE' => [
      [
        'core_incompatible' => FALSE,
        'php' => 1000000000000,
      ],
      TRUE,
    ],
    'PHP 1, core_incompatible TRUE' => [
      [
        'core_incompatible' => TRUE,
        'php' => 1,
      ],
      TRUE,
    ],
    'PHP 1000000000000, core_incompatible TRUE' => [
      [
        'core_incompatible' => TRUE,
        'php' => 1000000000000,
      ],
      TRUE,
    ],
  ];
}