function ConfigInstallProfileUnmetDependenciesTest::setUp

Same name and namespace in other branches
  1. 8.9.x 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 49

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;
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.