diff core/modules/contact/tests/drupal-7.contact.database.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/modules/contact/tests/drupal-7.contact.database.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/modules/contact/tests/drupal-7.contact.database.php	Thu May 09 15:34:47 2019 +0100
@@ -9,14 +9,15 @@
  * the database structure expected in tests altogether.
  */
 
+$connection = \Drupal::database();
 // Update the default category to that it is not selected.
-db_update('contact')
+$connection->update('contact')
   ->fields(['selected' => '0'])
   ->condition('cid', '1')
   ->execute();
 
 // Add a custom contact category.
-db_insert('contact')->fields([
+$connection->insert('contact')->fields([
   'category',
   'recipients',
   'reply',