You are here

public function ConfigTest::mergeDataProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Config/ConfigTest.php \Drupal\Tests\Core\Config\ConfigTest::mergeDataProvider()

Provides data to test merges.

See also

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

File

core/tests/Drupal/Tests/Core/Config/ConfigTest.php, line 376
Contains \Drupal\Tests\Core\Config\ConfigTest.

Class

ConfigTest
Tests the Config.

Namespace

Drupal\Tests\Core\Config

Code

public function mergeDataProvider() {
  return array(
    array(
      // Data.
      array(
        'a' => 1,
        'b' => 2,
        'c' => array(
          'd' => 3,
        ),
      ),
      // Data to merge.
      array(
        'a' => 2,
        'e' => 4,
        'c' => array(
          'f' => 5,
        ),
      ),
      // Data merged.
      array(
        'a' => 2,
        'b' => 2,
        'c' => array(
          'd' => 3,
          'f' => 5,
        ),
        'e' => 4,
      ),
    ),
  );
}