function SchemaTest::tryInsertExpectsIntegrityConstraintViolationException
Same name and namespace in other branches
- 11.x core/modules/sqlite/tests/src/Kernel/sqlite/SchemaTest.php \Drupal\Tests\sqlite\Kernel\sqlite\SchemaTest::tryInsertExpectsIntegrityConstraintViolationException()
Tries to insert a value that throws an IntegrityConstraintViolationException.
Parameters
string $tableName: The table to insert.
Overrides DriverSpecificSchemaTestBase::tryInsertExpectsIntegrityConstraintViolationException
File
-
core/
modules/ sqlite/ tests/ src/ Kernel/ sqlite/ SchemaTest.php, line 27
Class
- SchemaTest
- Tests schema API for the SQLite driver.
Namespace
Drupal\Tests\sqlite\Kernel\sqliteCode
protected function tryInsertExpectsIntegrityConstraintViolationException(string $tableName) : void {
// Sqlite does not throw an IntegrityConstraintViolationException here.
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.