Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / block_content / tests / fixtures / update / drupal-8.views_block_content-2976334.php
diff --git a/web/core/modules/block_content/tests/fixtures/update/drupal-8.views_block_content-2976334.php b/web/core/modules/block_content/tests/fixtures/update/drupal-8.views_block_content-2976334.php
new file mode 100644 (file)
index 0000000..a917036
--- /dev/null
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * @file
+ * Contains database additions to drupal-8.bare.standard.php.gz for testing the
+ * upgrade path of https://www.drupal.org/project/drupal/issues/2976334.
+ */
+
+use Drupal\Core\Database\Database;
+use Drupal\Core\Serialization\Yaml;
+
+$connection = Database::getConnection();
+
+// Override configuration for 'block_content' View with extra display with with
+// overridden filters.
+$config = Yaml::decode(file_get_contents(__DIR__ . '/views.view.block_content_2976334.yml'));
+$connection->update('config')
+  ->fields([
+    'data' => serialize($config),
+  ])
+  ->condition('name', 'views.view.' . $config['id'])
+  ->execute();