Pull merge.
[yaffs-website] / web / core / modules / taxonomy / tests / fixtures / update / drupal-8.views-taxonomy-term-publishing-status-2981887.php
1 <?php
2
3 /**
4  * @file
5  * Contains database additions to drupal-8.filled.standard.php.gz for testing
6  * the upgrade path of https://www.drupal.org/project/drupal/issues/2981887.
7  */
8
9 use Drupal\Core\Database\Database;
10 use Drupal\Core\Serialization\Yaml;
11
12 $connection = Database::getConnection();
13
14 $view_file = __DIR__ . '/views.view.test_taxonomy_term_view_with_content_translation_status.yml';
15 $view_with_cts_config = Yaml::decode(file_get_contents($view_file));
16
17 $view_file = __DIR__ . '/views.view.test_taxonomy_term_view_without_content_translation_status.yml';
18 $view_without_cts_config = Yaml::decode(file_get_contents($view_file));
19
20 $connection->insert('config')
21   ->fields(['collection', 'name', 'data'])
22   ->values([
23     'collection' => '',
24     'name' => 'views.view.test_taxonomy_term_view_with_content_translation_status',
25     'data' => serialize($view_with_cts_config),
26   ])
27   ->values([
28     'collection' => '',
29     'name' => 'views.view.test_taxonomy_term_view_without_content_translation_status',
30     'data' => serialize($view_without_cts_config),
31   ])
32   ->execute();