function 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\sqlite

Code

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.