Mercurial > hg > isophonics-drupal-site
diff core/modules/views/src/Tests/ViewKernelTestBase.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/views/src/Tests/ViewKernelTestBase.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/views/src/Tests/ViewKernelTestBase.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,9 @@ namespace Drupal\views\Tests; +@trigger_error(__NAMESPACE__ . '\ViewKernelTestBase is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal\Tests\views\Kernel\ViewsKernelTestBase instead.', E_USER_DEPRECATED); + +use Drupal\Core\Database\Database; use Drupal\Core\Database\Query\SelectInterface; use Drupal\simpletest\KernelTestBase; @@ -12,7 +15,7 @@ * requires the full web test environment provided by WebTestBase, extend * ViewTestBase instead. * - * @deprecated in Drupal 8.0.x, will be removed in Drupal 8.2.x. Use + * @deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use * \Drupal\Tests\views\Kernel\ViewsKernelTestBase instead. * * @see \Drupal\Tests\views\Kernel\ViewsKernelTestBase @@ -71,7 +74,7 @@ // Load the test dataset. $data_set = $this->dataSet(); - $query = db_insert('views_test_data') + $query = Database::getConnection()->insert('views_test_data') ->fields(array_keys($data_set[0])); foreach ($data_set as $record) { $query->values($record);