Mercurial > hg > cmmr2012-drupal-site
diff core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/locale/tests/src/Functional/LocaleUpdateCronTest.php Thu May 09 15:34:47 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');