DropIndexAllOnKeyValueExpireTableUpdateTest.php in Drupal 9
File
core/modules/system/tests/src/Functional/Update/DropIndexAllOnKeyValueExpireTableUpdateTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class DropIndexAllOnKeyValueExpireTableUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
dirname(__DIR__, 3) . '/fixtures/update/drupal-8.8.0.bare.standard.php.gz',
];
}
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'));
}
}