Mercurial > hg > isophonics-drupal-site
diff core/modules/field/tests/src/Kernel/FieldDataCountTest.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/field/tests/src/Kernel/FieldDataCountTest.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/field/tests/src/Kernel/FieldDataCountTest.php Thu May 09 15:33:08 2019 +0100 @@ -2,6 +2,7 @@ namespace Drupal\Tests\field\Kernel; +use Drupal\Core\Database\Database; use Drupal\Core\Entity\Sql\SqlContentEntityStorage; use Drupal\entity_test\Entity\EntityTest; use Drupal\field\Entity\FieldConfig; @@ -87,7 +88,7 @@ // Count the actual number of rows in the field table. $table_mapping = $storage->getTableMapping(); $field_table_name = $table_mapping->getDedicatedDataTableName($field_storage); - $result = db_select($field_table_name, 't') + $result = Database::getConnection()->select($field_table_name, 't') ->fields('t') ->countQuery() ->execute()