function ConfigTest::nestedDataProvider

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::nestedDataProvider()
  2. 8.9.x core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::nestedDataProvider()
  3. 10 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::nestedDataProvider()

Provides nested test data.

See also

\Drupal\Tests\Core\Config\ConfigTest::testSetData()

\Drupal\Tests\Core\Config\ConfigTest::testSave()

\Drupal\Tests\Core\Config\ConfigTest::testSetValue()

\Drupal\Tests\Core\Config\ConfigTest::testInitWithData()

\Drupal\Tests\Core\Config\ConfigTest::testNestedClear()

File

core/tests/Drupal/Tests/Core/Config/ConfigTest.php, line 564

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public static function nestedDataProvider() {
  return [
    [
      [
        'a' => [
          'd' => 1,
        ],
        'b' => [
          'e' => 2,
        ],
        'c' => [
          'f' => 3,
        ],
      ],
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.