You are here

public function ConfigEntityTypeTest::testGetPropertiesToExport 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::testGetPropertiesToExport()

@covers ::getPropertiesToExport

@dataProvider providerGetPropertiesToExport

File

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

Class

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

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testGetPropertiesToExport($definition, $expected) {
  $entity_type = $this
    ->setUpConfigEntityType($definition);
  $properties_to_export = $entity_type
    ->getPropertiesToExport();
  $this
    ->assertSame($expected, $properties_to_export);

  // Ensure the method is idempotent.
  $properties_to_export = $entity_type
    ->getPropertiesToExport();
  $this
    ->assertSame($expected, $properties_to_export);
}