You are here

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

Same name and namespace in other branches
  1. 4.2.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testIndexTableDoesNotExistException()
  2. 3.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testIndexTableDoesNotExistException()
  3. 3.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testIndexTableDoesNotExistException()
  4. 4.0.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testIndexTableDoesNotExistException()
  5. 4.1.x tests/src/Kernel/SchemaTest.php \Drupal\Tests\sqlsrv\Kernel\SchemaTest::testIndexTableDoesNotExistException()

Exception thrown when table does not exist.

Verify that the function parameters after 'name' are correct.

File

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

Class

SchemaTest
Tests table creation and modification via the schema API.

Namespace

Drupal\Tests\sqlsrv\Kernel

Code

public function testIndexTableDoesNotExistException() {
  $this
    ->expectException(SchemaObjectDoesNotExistException::class);
  $this->schema
    ->addIndex('test_new', 'name', $this->table['fields'], $this->table);
}