You are here

public function DropIndexAllOnKeyValueExpireTableUpdateTest::testUpdate in Drupal 9

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'));
}