You are here

public function ConfigEntityTypeTest::providerGetPropertiesToExport in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::providerGetPropertiesToExport()

File

core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php, line 157

Class

ConfigEntityTypeTest
@coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType @group Config

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function providerGetPropertiesToExport() {
  $data = [];
  $data[] = [
    [
      'config_export' => [
        'id',
        'custom_property' => 'customProperty',
      ],
    ],
    [
      'uuid' => 'uuid',
      'langcode' => 'langcode',
      'status' => 'status',
      'dependencies' => 'dependencies',
      'third_party_settings' => 'third_party_settings',
      '_core' => '_core',
      'id' => 'id',
      'custom_property' => 'customProperty',
    ],
  ];
  $data[] = [
    [
      'config_export' => [
        'id',
      ],
      'mergedConfigExport' => [
        'random_key' => 'random_key',
      ],
    ],
    [
      'random_key' => 'random_key',
    ],
  ];
  return $data;
}