public function testDeprecationConnection() { $this->
expectDeprecation('\Drupal\Core\Database\Driver\pgsql\Connection is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. See https://www.drupal.org/node/3129492'
);
$connection =
new Connection($this->
createMock(StubPDO::
class),
[]);
$this->
assertInstanceOf(Connection::
class,
$connection);
} /**
* @covers Drupal\Core\Database\Driver\pgsql\Delete
*/
public function testDeprecationDelete() { $this->
expectDeprecation('\Drupal\Core\Database\Driver\pgsql\Delete is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. See https://www.drupal.org/node/3129492'
);
$delete =
new Delete($this->connection, 'test'
);
$this->
assertInstanceOf(Delete::
class,
$delete);
} /**
* @covers Drupal\Core\Database\Driver\pgsql\Insert
*/
public function testDeprecationInsert() { $this->
expectDeprecation('\Drupal\Core\Database\Driver\pgsql\Insert is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The PostgreSQL database driver has been moved to the pgsql module. See https://www.drupal.org/node/3129492'
);
$insert =
new Insert($this->connection, 'test'
);
$this->
assertInstanceOf(Insert::
class,
$insert);
}