You are here

public function ModuleInstallerTest::providerTestInvalidCoreInstall in Drupal 8

Same name and namespace in other branches
  1. 9 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,
    ],
  ];
}