function ModuleInstallerTest::providerTestInvalidCoreInstall

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php \Drupal\KernelTests\Core\Extension\ModuleInstallerTest::providerTestInvalidCoreInstall()
  2. 10 core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php \Drupal\KernelTests\Core\Extension\ModuleInstallerTest::providerTestInvalidCoreInstall()
  3. 11.x core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php \Drupal\KernelTests\Core\Extension\ModuleInstallerTest::providerTestInvalidCoreInstall()

Dataprovider for testInvalidCoreInstall().

File

core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php, line 104

Class

ModuleInstallerTest
Tests the ModuleInstaller class.

Namespace

Drupal\KernelTests\Core\Extension

Code

public function providerTestInvalidCoreInstall() {
    return [
        'no dependencies system_incompatible_core_version_test_1x' => [
            'system_incompatible_core_version_test_1x',
            FALSE,
        ],
        'install_dependencies system_incompatible_core_version_test_1x' => [
            'system_incompatible_core_version_test_1x',
            TRUE,
        ],
        'no dependencies system_core_incompatible_semver_test' => [
            'system_core_incompatible_semver_test',
            FALSE,
        ],
        'install_dependencies system_core_incompatible_semver_test' => [
            'system_core_incompatible_semver_test',
            TRUE,
        ],
    ];
}

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