public function RemoveRevisionMetadataBcLayerUpdateTest::testRevisionMetadataBcLayerRemoval in Drupal 9
See also
system_post_update_entity_revision_metadata_bc_cleanup()
File
- core/
modules/ system/ tests/ src/ Functional/ Update/ RemoveRevisionMetadataBcLayerUpdateTest.php, line 28
Class
- RemoveRevisionMetadataBcLayerUpdateTest
- Tests the upgrade path for removing the revision metadata BC layer.
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testRevisionMetadataBcLayerRemoval() {
$entity_type = \Drupal::service('entity.last_installed_schema.repository')
->getLastInstalledDefinition('node');
$this
->assertArrayHasKey("\0*\0requiredRevisionMetadataKeys", (array) $entity_type);
$this
->runUpdates();
$entity_type = \Drupal::service('entity.last_installed_schema.repository')
->getLastInstalledDefinition('node');
$this
->assertArrayNotHasKey("\0*\0requiredRevisionMetadataKeys", (array) $entity_type);
}