You are here

public function InstallProfileTest::testMissingDependencies in Helper 8

Tests switching to a profile with missing dependencies.

@covers ::validateProfile

File

tests/src/Kernel/InstallProfileTest.php, line 96

Class

InstallProfileTest
Tests the install profile helper.

Namespace

Drupal\Tests\helper\Kernel

Code

public function testMissingDependencies() {

  // The testing profile should not have the ban nor dblog modules enabled.
  $this
    ->expectException(InstallerException::class);
  $this
    ->expectExceptionMessage("The following module dependencies are not enabled or are missing for the testing_install_profile_all_dependencies profile: ban, dblog.");
  $this->installProfile
    ->validateProfile('testing_install_profile_all_dependencies');
}