duplicate-field-handler.php in Drupal 8
Test fixture.
File
core/modules/views/tests/fixtures/update/duplicate-field-handler.phpView source
<?php
/**
* @file
* Test fixture.
*/
use Drupal\Core\Database\Database;
use Drupal\Core\Serialization\Yaml;
$connection = Database::getConnection();
$connection
->insert('config')
->fields([
'collection' => '',
'name' => 'views.view.test_duplicate_field_handlers',
'data' => serialize(Yaml::decode(file_get_contents('core/modules/views/tests/modules/views_test_config/test_views/views.view.test_duplicate_field_handlers.yml'))),
])
->execute();