You are here

public function InstallProfileTest::testRequirements in Helper 8

Tests switching to a profile with failed requirements.

@covers ::validateProfile @covers ::formatRequirementsReasons

File

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

Class

InstallProfileTest
Tests the install profile helper.

Namespace

Drupal\Tests\helper\Kernel

Code

public function testRequirements() {
  $this
    ->expectException(InstallerException::class);
  $this
    ->expectExceptionMessage("Failed requirements check for the testing_requirements profile:\nTesting requirements failed requirements.");
  $this->installProfile
    ->validateProfile('testing_requirements');
}