function DropIndexAllOnKeyValueExpireTableUpdateTest::testUpdate

Tests that 'all' index is dropped from the 'key_value_expire' table.

File

core/modules/system/tests/src/Functional/Update/DropIndexAllOnKeyValueExpireTableUpdateTest.php, line 27

Class

DropIndexAllOnKeyValueExpireTableUpdateTest
Tests that 'all' index is dropped from the 'key_value_expire' table.

Namespace

Drupal\Tests\system\Functional\Update

Code

public function testUpdate() {
    $schema = \Drupal::database()->schema();
    $this->assertTrue($schema->indexExists('key_value_expire', 'all'));
    $this->runUpdates();
    $this->assertFalse($schema->indexExists('key_value_expire', 'all'));
}

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