function SqliteDriverLegacyTest::testDeprecationUpsert
Same name in other branches
- 9 core/modules/sqlite/tests/src/Kernel/sqlite/SqliteDriverLegacyTest.php \Drupal\Tests\sqlite\Kernel\sqlite\SqliteDriverLegacyTest::testDeprecationUpsert()
@covers Drupal\Core\Database\Driver\sqlite\Upsert
File
-
core/
modules/ sqlite/ tests/ src/ Kernel/ sqlite/ SqliteDriverLegacyTest.php, line 92
Class
- SqliteDriverLegacyTest
- Tests the deprecations of the SQLite database driver classes in Core.
Namespace
Drupal\Tests\sqlite\Kernel\sqliteCode
public function testDeprecationUpsert() : void {
$this->expectDeprecation('\\Drupal\\Core\\Database\\Driver\\sqlite\\Upsert is deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. The SQLite database driver has been moved to the sqlite module. See https://www.drupal.org/node/3129492');
$upsert = new Upsert($this->connection, 'test');
$this->assertInstanceOf(Upsert::class, $upsert);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.