public function ConfigTest::testValidateNameException in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::testValidateNameException()
- 9 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::testValidateNameException()
@covers ::validateName @dataProvider validateNameProvider
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 413
Class
- ConfigTest
- Tests the Config.
Namespace
Drupal\Tests\Core\ConfigCode
public function testValidateNameException($name, $exception_message) {
$this
->expectException('\\Drupal\\Core\\Config\\ConfigNameException');
$this
->expectExceptionMessage($exception_message);
$this->config
->validateName($name);
}