function ModuleInstallerTest::testDependencyInvalidCoreInstallNoDependencies

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

Tests no dependencies install with a dependency with invalid core.

@covers ::install

File

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

Class

ModuleInstallerTest
Tests the ModuleInstaller class.

Namespace

Drupal\KernelTests\Core\Extension

Code

public function testDependencyInvalidCoreInstallNoDependencies() : void {
    $this->assertTrue($this->container
        ->get('module_installer')
        ->install([
        'system_incompatible_core_version_dependencies_test',
    ], FALSE));
}

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