You are here

public function ConfigTest::setNameProvider in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 94
Contains \Drupal\Tests\Core\Config\ConfigTest.

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function setNameProvider() {
  return array(
    // Valid name with dot.
    array(
      'test.name',
    ),
    // Maximum length.
    array(
      'test.' . str_repeat('a', Config::MAX_NAME_LENGTH - 5),
    ),
  );
}