public function SchemaTest::testFieldDoesNotExistException in Drupal driver for SQL Server and SQL Azure 8.2
Same name and namespace in other branches
- 4.2.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testFieldDoesNotExistException()
- 3.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testFieldDoesNotExistException()
- 3.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testFieldDoesNotExistException()
- 4.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testFieldDoesNotExistException()
- 4.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testFieldDoesNotExistException()
Exception thrown when field does not exist.
File
- tests/
src/ Kernel/ SchemaTest.php, line 279
Class
- SchemaTest
- Tests table creation and modification via the schema API.
Namespace
Drupal\Tests\sqlsrv\KernelCode
public function testFieldDoesNotExistException() {
$this
->expectException(SchemaObjectDoesNotExistException::class);
$this->schema
->changeField('test', 'age1', 'age2', $this->table['fields']['age']);
}