You are here

public function SchemaTest::testAddNotDefaultException in Drupal driver for SQL Server and SQL Azure 8.2

Same name and namespace in other branches
  1. 3.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testAddNotDefaultException()
  2. 3.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testAddNotDefaultException()

Exception thrown when field does not exist.

File

tests/src/Kernel/SchemaTest.php, line 145

Class

SchemaTest
Tests table creation and modification via the schema API.

Namespace

Drupal\Tests\sqlsrv\Kernel

Code

public function testAddNotDefaultException() {
  $this
    ->expectException(SchemaObjectDoesNotExistException::class);
  $this->schema
    ->fieldSetNoDefault('test', 'noname');
}