diff --git a/core/modules/block/src/Tests/Update/BlockContextMappingUpdateTest.php b/core/modules/block/src/Tests/Update/BlockContextMappingUpdateTest.php index fcbe5ee..582a8e1 100644 --- a/core/modules/block/src/Tests/Update/BlockContextMappingUpdateTest.php +++ b/core/modules/block/src/Tests/Update/BlockContextMappingUpdateTest.php @@ -33,6 +33,7 @@ protected function setUp() { __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz', __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php', __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.language-enabled.php', + __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8.block-test-enabled.php', ]; parent::setUp(); diff --git a/core/modules/system/tests/fixtures/update/drupal-8.block-test-enabled.php b/core/modules/system/tests/fixtures/update/drupal-8.block-test-enabled.php new file mode 100644 index 0000000..d26b379 --- /dev/null +++ b/core/modules/system/tests/fixtures/update/drupal-8.block-test-enabled.php @@ -0,0 +1,36 @@ +insert('key_value') + ->fields([ + 'collection' => 'system.schema', + 'name' => 'block_test', + 'value' => 'i:8000;', + ]) + ->execute(); + +// Update core.extension. +$extensions = $connection->select('config') + ->fields('config', ['data']) + ->condition('collection', '') + ->condition('name', 'core.extension') + ->execute() + ->fetchField(); +$extensions = unserialize($extensions); +$extensions['module']['block_test'] = 8000; +$connection->update('config') + ->fields([ + 'data' => serialize($extensions), + ]) + ->condition('collection', '') + ->condition('name', 'core.extension') + ->execute(); diff --git a/core/modules/system/tests/fixtures/update/drupal-8.language-enabled.php b/core/modules/system/tests/fixtures/update/drupal-8.language-enabled.php index dcd5cba..2306ade 100644 Binary files a/core/modules/system/tests/fixtures/update/drupal-8.language-enabled.php and b/core/modules/system/tests/fixtures/update/drupal-8.language-enabled.php differ