function ConfigInstallProfileUnmetDependenciesTest::testInstalled
Same name in other branches
- 9 core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php \Drupal\Tests\config\Functional\ConfigInstallProfileUnmetDependenciesTest::testInstalled()
- 8.9.x core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php \Drupal\Tests\config\Functional\ConfigInstallProfileUnmetDependenciesTest::testInstalled()
- 10 core/modules/config/tests/src/Functional/ConfigInstallProfileUnmetDependenciesTest.php \Drupal\Tests\config\Functional\ConfigInstallProfileUnmetDependenciesTest::testInstalled()
Confirms that the installation succeeded.
File
-
core/
modules/ config/ tests/ src/ Functional/ ConfigInstallProfileUnmetDependenciesTest.php, line 99
Class
- ConfigInstallProfileUnmetDependenciesTest
- Tests install profile config overrides can not add unmet dependencies.
Namespace
Drupal\Tests\config\FunctionalCode
public function testInstalled() : void {
if ($this->expectedException) {
$this->assertStringContainsString('Configuration objects provided by <em class="placeholder">testing_config_overrides</em> have unmet dependencies: <em class="placeholder">system.action.user_block_user_action (does_not_exist)</em>', $this->expectedException
->getMessage());
$this->assertStringContainsString('Drupal\\Core\\Config\\UnmetDependenciesException', $this->expectedException
->getMessage());
}
else {
$this->fail('Expected Drupal\\Core\\Config\\UnmetDependenciesException exception not thrown');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.