You are here

protected function StorageComparerTest::getConfigData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php \Drupal\Tests\Core\Config\StorageComparerTest::getConfigData()
4 calls to StorageComparerTest::getConfigData()
StorageComparerTest::testCreateChangelistCreate in core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
@covers ::createChangelist
StorageComparerTest::testCreateChangelistDelete in core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
@covers ::createChangelist
StorageComparerTest::testCreateChangelistNoChange in core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
@covers ::createChangelist
StorageComparerTest::testCreateChangelistUpdate in core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php
@covers ::createChangelist

File

core/tests/Drupal/Tests/Core/Config/StorageComparerTest.php, line 56
Contains \Drupal\Tests\Core\Config\StorageComparerTest.

Class

StorageComparerTest
@coversDefaultClass \Drupal\Core\Config\StorageComparer @group Config

Namespace

Drupal\Tests\Core\Config

Code

protected function getConfigData() {
  $uuid = new Php();

  // Mock data using minimal data to use ConfigDependencyManger.
  $this->configData = array(
    // Simple config that controls configuration sync.
    'system.site' => array(
      'title' => 'Drupal',
      'uuid' => $uuid
        ->generate(),
    ),
    // Config entity which requires another config entity.
    'field.field.node.article.body' => array(
      'id' => 'node.article.body',
      'uuid' => $uuid
        ->generate(),
      'dependencies' => array(
        'config' => array(
          'field.storage.node.body',
        ),
      ),
    ),
    // Config entity which is required by another config entity.
    'field.storage.node.body' => array(
      'id' => 'node.body',
      'uuid' => $uuid
        ->generate(),
      'dependencies' => array(
        'module' => array(
          'text',
        ),
      ),
    ),
    // Config entity not which has no dependencies on configuration.
    'views.view.test_view' => array(
      'id' => 'test_view',
      'uuid' => $uuid
        ->generate(),
      'dependencies' => array(
        'module' => array(
          'node',
        ),
      ),
    ),
    // Simple config.
    'system.performance' => array(
      'stale_file_threshold' => 2592000,
    ),
  );
  return $this->configData;
}