function ConfigEntityTypeTest::testGetPropertiesToExport

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testGetPropertiesToExport()
  2. 9 core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testGetPropertiesToExport()
  3. 8.9.x core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testGetPropertiesToExport()
  4. main core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php \Drupal\Tests\Core\Config\Entity\ConfigEntityTypeTest::testGetPropertiesToExport()

Tests get properties to export.

Attributes

#[DataProvider('providerGetPropertiesToExport')]

File

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

Class

ConfigEntityTypeTest
Tests Drupal\Core\Config\Entity\ConfigEntityType.

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function testGetPropertiesToExport($definition, $expected) : void {
  $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);
}

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