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.
9 use Drupal\Core\Database\Database;
10 use Drupal\Core\Serialization\Yaml;
12 $connection = Database::getConnection();
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));
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));
20 $connection->insert('config')
21 ->fields(['collection', 'name', 'data'])
24 'name' => 'views.view.test_taxonomy_term_view_with_content_translation_status',
25 'data' => serialize($view_with_cts_config),
29 'name' => 'views.view.test_taxonomy_term_view_without_content_translation_status',
30 'data' => serialize($view_without_cts_config),