Mercurial > hg > isophonics-drupal-site
diff core/modules/search/tests/src/Functional/SearchRankingTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/search/tests/src/Functional/SearchRankingTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/search/tests/src/Functional/SearchRankingTest.php Thu May 09 15:33:08 2019 +0100 @@ -4,6 +4,7 @@ use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface; use Drupal\comment\Tests\CommentTestTrait; +use Drupal\Core\Database\Database; use Drupal\Core\Url; use Drupal\filter\Entity\FilterFormat; use Drupal\search\Entity\SearchPage; @@ -104,7 +105,7 @@ // to the Statistics module. So instead go ahead and manually update the // counter for this node. $nid = $nodes['views'][1]->id(); - db_insert('node_counter') + Database::getConnection()->insert('node_counter') ->fields(['totalcount' => 5, 'daycount' => 5, 'timestamp' => REQUEST_TIME, 'nid' => $nid]) ->execute();