exposed-filter-blocks.php 825 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * Test fixture.
  5. */
  6. use Drupal\Core\Database\Database;
  7. use Drupal\Core\Serialization\Yaml;
  8. $connection = Database::getConnection();
  9. // Install the view configuration.
  10. $connection->insert('config')
  11. ->fields([
  12. 'collection' => '',
  13. 'name' => 'views.view.test_exposed_block',
  14. 'data' => serialize(Yaml::decode(file_get_contents('core/modules/views/tests/modules/views_test_config/test_views/views.view.test_exposed_block.yml'))),
  15. ])
  16. ->execute();
  17. // Install the block configuration.
  18. $connection->insert('config')
  19. ->fields([
  20. 'collection' => '',
  21. 'name' => 'block.block.exposedformtest_exposed_blockpage_1',
  22. 'data' => serialize(Yaml::decode(file_get_contents('core/modules/views/tests/fixtures/update/block.block.exposedformtest_exposed_blockpage_1.yml'))),
  23. ])
  24. ->execute();