You are here

protected function ConfigInstallProfileUnmetDependenciesTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php \Drupal\Tests\config\Functional\ConfigInstallProfileUnmetDependenciesTest::setUp()

Overrides InstallerTestBase::setUp

File

core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php, line 46

Class

ConfigInstallProfileUnmetDependenciesTest
Tests install profile config overrides can not add unmet dependencies.

Namespace

Drupal\Tests\config\Functional

Code

protected function setUp() : void {

  // During set up an UnmetDependenciesException should be thrown, which will
  // be re-thrown by TestHttpClientMiddleware as a standard Exception.
  try {
    parent::setUp();
  } catch (\Exception $exception) {
    $this->expectedException = $exception;
  }
}