You are here

public function InstallProfileTest::testProfileDoesNotExist in Helper 8

Tests switching to an invalid profile should fail.

@covers ::validateProfile

File

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

Class

InstallProfileTest
Tests the install profile helper.

Namespace

Drupal\Tests\helper\Kernel

Code

public function testProfileDoesNotExist() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage('The profile_does_not_exist profile does not exist.');
  $this->installProfile
    ->validateProfile('profile_does_not_exist');
}