public function SchemaTest::testAddDefaultException in Drupal driver for SQL Server and SQL Azure 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testAddDefaultException()
- 3.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testAddDefaultException()
Exception thrown when field does not exist.
File
- tests/
src/ Kernel/ SchemaTest.php, line 131
Class
- SchemaTest
- Tests table creation and modification via the schema API.
Namespace
Drupal\Tests\sqlsrv\KernelCode
public function testAddDefaultException() {
$this
->expectException(SchemaObjectDoesNotExistException::class);
$this->schema
->fieldSetDefault('test', 'noname', 'Elvis');
}