drupal-7.shortcut.database.php

Database additions for shortcut tests. Used in ShortcutUpgradePathTest.

This dump only contains data and schema components relevant for shortcut functionality. The drupal-7.bare.standard_all.database.php file is imported before this dump, so the two form the database structure expected in tests altogether.

File

drupal/core/modules/system/tests/upgrade/drupal-7.shortcut.database.php
View source
<?php

/**
 * @file
 * Database additions for shortcut tests. Used in ShortcutUpgradePathTest.
 *
 * This dump only contains data and schema components relevant for shortcut
 * functionality. The drupal-7.bare.standard_all.database.php file is imported
 * before this dump, so the two form the database structure expected in tests
 * altogether.
 */

// Add custom shortcut set.
db_insert('shortcut_set')
  ->fields(array(
  'set_name',
  'title',
))
  ->values(array(
  'set_name' => 'shortcut-set-2',
  'title' => 'Custom shortcut set',
))
  ->execute();