function ConfigTest::setNameProvider
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::setNameProvider()
- 10 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::setNameProvider()
- 11.x core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::setNameProvider()
Provides config names to test.
See also
\Drupal\Tests\Core\Config\ConfigTest::testSetName()
File
-
core/
tests/ Drupal/ Tests/ Core/ Config/ ConfigTest.php, line 93
Class
- ConfigTest
- Tests the Config.
Namespace
Drupal\Tests\Core\ConfigCode
public function setNameProvider() {
return [
// Valid name with dot.
[
'test.name',
],
// Maximum length.
[
'test.' . str_repeat('a', Config::MAX_NAME_LENGTH - 5),
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.