function PathAliasUpdateTest::testPathAliasStatusIndexRemoved
Same name in other branches
- 10 core/modules/path_alias/tests/src/Functional/PathAliasUpdateTest.php \Drupal\Tests\path_alias\Functional\PathAliasUpdateTest::testPathAliasStatusIndexRemoved()
Tests path_alias_post_update_drop_path_alias_status_index.
File
-
core/
modules/ path_alias/ tests/ src/ Functional/ PathAliasUpdateTest.php, line 26
Class
- PathAliasUpdateTest
- Tests update hooks the path_alias module.
Namespace
Drupal\Tests\path_alias\FunctionalCode
public function testPathAliasStatusIndexRemoved() : void {
$schema = \Drupal::database()->schema();
$this->assertTrue($schema->indexExists('path_alias', 'path_alias__status'));
$this->runUpdates();
$this->assertFalse($schema->indexExists('path_alias', 'path_alias__status'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.