e06cd1c58166541e37dc248d6249d2d9135ac037
[yaffs-website] / web / core / modules / system / tests / fixtures / update / drupal-8.broken_routing.php
1 <?php
2
3 /**
4  * @file
5  * Test fixture.
6  */
7
8 use Drupal\Core\Database\Database;
9
10 $connection = Database::getConnection();
11
12 $config = unserialize($connection->query("SELECT data FROM {config} where name = :name", [':name' => 'core.extension'])->fetchField());
13 $config['module']['update_script_test'] = 0;
14 $connection->update('config')
15   ->fields(['data' => serialize($config)])
16   ->condition('name', 'core.extension')
17   ->execute();
18
19 $connection->insert('key_value')
20   ->fields(['collection' => 'system.schema', 'name' => 'update_script_test', 'value' => serialize(8000)])
21   ->execute();