public function StatementWrapperLegacyTest::testBindParam in Drupal 9
@covers ::bindParam
File
- core/
tests/ Drupal/ KernelTests/ Core/ Database/ StatementWrapperLegacyTest.php, line 58
Class
- StatementWrapperLegacyTest
- Tests the deprecations of the StatementWrapper class.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testBindParam() {
$this
->expectDeprecation('StatementWrapper::bindParam should not be called in drupal:9.1.0 and will error in drupal:10.0.0. Access the client-level statement object via ::getClientStatement(). See https://www.drupal.org/node/3177488');
$test = NULL;
$this
->assertTrue($this->statement
->bindParam(':name', $test));
}