function PathAliasStorageSchemaTest::testPathAliasStatusIndexRemoved

Same name in other branches
  1. 10 core/modules/path_alias/tests/src/Kernel/PathAliasStorageSchemaTest.php \Drupal\Tests\path_alias\Kernel\PathAliasStorageSchemaTest::testPathAliasStatusIndexRemoved()

Tests that the path_alias__status index is removed.

@covers ::getEntitySchema

File

core/modules/path_alias/tests/src/Kernel/PathAliasStorageSchemaTest.php, line 36

Class

PathAliasStorageSchemaTest
Tests the path_alias storage schema.

Namespace

Drupal\Tests\path_alias\Kernel

Code

public function testPathAliasStatusIndexRemoved() : void {
    $schema = \Drupal::database()->schema();
    $table_name = 'path_alias';
    $this->assertTrue($schema->indexExists($table_name, 'path_alias__alias_langcode_id_status'));
    $this->assertTrue($schema->indexExists($table_name, 'path_alias__path_langcode_id_status'));
    $this->assertFalse($schema->indexExists($table_name, 'path_alias__status'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.