604321ddc8dcdd55fd67e9df849169033a0d8ad9
[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
11 $connection = Database::getConnection();
12
13 $config = unserialize($connection->query("SELECT data FROM {config} where name = :name", [':name' => 'core.extension'])->fetchField());
14 $config['module']['update_script_test'] = 0;
15 $connection->update('config')
16   ->fields(['data' => serialize($config)])
17   ->condition('name', 'core.extension')
18   ->execute();
19
20 $connection->insert('key_value')
21   ->fields(['collection' => 'system.schema', 'name' => 'update_script_test', 'value' => serialize(8000)])
22   ->execute();