1. 8.5.x core/modules/contact/tests/drupal-7.contact.database.php
  2. 8.0.x core/modules/contact/tests/drupal-7.contact.database.php
  3. 8.1.x core/modules/contact/tests/drupal-7.contact.database.php
  4. 8.2.x core/modules/contact/tests/drupal-7.contact.database.php
  5. 8.3.x core/modules/contact/tests/drupal-7.contact.database.php
  6. 8.4.x core/modules/contact/tests/drupal-7.contact.database.php
  7. 8.6.x core/modules/contact/tests/drupal-7.contact.database.php

Database additions for Drupal\contact\Tests\ContactUpgradePathTest.

This dump only contains data for the contact module. The drupal-7.filled.bare.php file is imported before this dump, so the two form the database structure expected in tests altogether.

File

core/modules/contact/tests/drupal-7.contact.database.php
View source
<?php

/**
 * @file
 * Database additions for Drupal\contact\Tests\ContactUpgradePathTest.
 *
 * This dump only contains data for the contact module. The
 * drupal-7.filled.bare.php file is imported before this dump, so the two form
 * the database structure expected in tests altogether.
 */

// Update the default category to that it is not selected.
db_update('contact')
  ->fields(array(
  'selected' => '0',
))
  ->condition('cid', '1')
  ->execute();

// Add a custom contact category.
db_insert('contact')
  ->fields(array(
  'category',
  'recipients',
  'reply',
  'weight',
  'selected',
))
  ->values(array(
  'category' => 'Upgrade test',
  'recipients' => 'test1@example.com,test2@example.com',
  'reply' => 'Test reply',
  'weight' => 1,
  'selected' => 1,
))
  ->execute();