public function ConfigEntityTypeTest::testGetPropertiesToExportSchemaFallback in Drupal 8
@covers ::getPropertiesToExport
@group legacy @expectedDeprecation Entity type "example_config_entity_type" is using config schema as a fallback for a missing `config_export` definition is deprecated in Drupal 8.7.0 and will be removed before Drupal 9.0.0. See https://www.drupal.org/node/2949023.
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ Entity/ ConfigEntityTypeTest.php, line 200
Class
- ConfigEntityTypeTest
- @coversDefaultClass \Drupal\Core\Config\Entity\ConfigEntityType @group Config
Namespace
Drupal\Tests\Core\Config\EntityCode
public function testGetPropertiesToExportSchemaFallback() {
$this->typedConfigManager
->expects($this
->once())
->method('getDefinition')
->will($this
->returnValue([
'mapping' => [
'id' => '',
'dependencies' => '',
],
]));
$config_entity_type = new ConfigEntityType([
'id' => 'example_config_entity_type',
]);
$this
->assertEquals([
'id' => 'id',
'dependencies' => 'dependencies',
], $config_entity_type
->getPropertiesToExport('test'));
}