function ExtensionListTest::providerCheckIncompatibility

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::providerCheckIncompatibility()
  2. 8.9.x core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php \Drupal\Tests\Core\Extension\ExtensionListTest::providerCheckIncompatibility()
  3. 11.x 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 223

Class

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

Namespace

Drupal\Tests\Core\Extension

Code

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

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