diff core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents c2387f117808
children
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php	Thu Feb 28 13:21:36 2019 +0000
+++ b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php	Thu May 09 15:33:08 2019 +0100
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\locale\Functional;
 
+use Drupal\Core\Database\Database;
 use Drupal\Tests\Traits\Core\CronRunTrait;
 
 /**
@@ -51,7 +52,7 @@
 
     // Prepare for test: Simulate that the file has not been checked for a long
     // time. Set the last_check timestamp to zero.
-    $query = db_update('locale_file');
+    $query = Database::getConnection()->update('locale_file');
     $query->fields(['last_checked' => 0]);
     $query->condition('project', 'contrib_module_two');
     $query->condition('langcode', 'de');