function DatabaseLegacyTest::testDbOr
Tests deprecation of the db_or() function.
@expectedDeprecation db_or() is deprecated in drupal:8.0.0. It will be removed from drupal:9.0.0. Create a \Drupal\Core\Database\Query\Condition object, specifying an OR conjunction: new Condition('OR'), instead. See https://www.drupal.org/node/2993033
File
-
core/
tests/ Drupal/ KernelTests/ Core/ Database/ DatabaseLegacyTest.php, line 54
Class
- DatabaseLegacyTest
- Deprecation tests cases for the database layer.
Namespace
Drupal\KernelTests\Core\DatabaseCode
public function testDbOr() {
$this->assertInstanceOf(Condition::class, db_or());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.