function EntityQueryServiceDeprecation::testPostgresServiceNotDeprecated
Tests that the pgsql provided service is not deprecated.
File
-
core/
modules/ pgsql/ tests/ src/ Kernel/ EntityQueryServiceDeprecation.php, line 36
Class
- EntityQueryServiceDeprecation
- Tests the move of the 'pgsql.entity.query.sql' service.
Namespace
Drupal\Tests\pgsql\KernelCode
public function testPostgresServiceNotDeprecated() : void {
$running_driver = $this->container
->get('database')
->driver();
if ($running_driver !== 'pgsql') {
$this->markTestSkipped('The service is deprecated for database drivers other than pgsql.');
}
$service = $this->container
->get('pgsql.entity.query.sql');
$this->assertInstanceOf(QueryFactory::class, $service);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.