You are here

public function InstallProfileTest::testCurrentProfile in Helper 8

Tests switching to the same profile should fail.

@covers ::validateProfile

File

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

Class

InstallProfileTest
Tests the install profile helper.

Namespace

Drupal\Tests\helper\Kernel

Code

public function testCurrentProfile() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $this
    ->expectExceptionMessage('The current install profile is already set to testing.');
  $this->installProfile
    ->validateProfile('testing');
}