function ConfigInstallProfileUnmetDependenciesTest::setUp

Same name in other branches
  1. 9 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() {
    // 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.