protected function ConfigInstallProfileUnmetDependenciesTest::error in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php \Drupal\config\Tests\ConfigInstallProfileUnmetDependenciesTest::error()
Override the error method so we can test for the expected exception.
Overrides TestBase::error
File
- core/
modules/ config/ src/ Tests/ ConfigInstallProfileUnmetDependenciesTest.php, line 67 - Contains \Drupal\config\Tests\ConfigInstallProfileUnmetDependenciesTest.
Class
- ConfigInstallProfileUnmetDependenciesTest
- Tests install profile config overrides can not add unmet dependencies.
Namespace
Drupal\config\TestsCode
protected function error($message = '', $group = 'Other', array $caller = NULL) {
if ($group == 'User notice') {
// Since 'User notice' is set by trigger_error() which is used for debug
// set the message to a status of 'debug'.
return $this
->assert('debug', $message, 'Debug', $caller);
}
if ($group == 'Drupal\\Core\\Config\\UnmetDependenciesException') {
$this->expectedException = TRUE;
return FALSE;
}
return $this
->assert('exception', $message, $group, $caller);
}