function SequencesTableRemovalUpdateTest::testRunUpdates

Tests that system_update_12000() removes the deprecated sequences table.

File

core/modules/system/tests/src/Functional/Update/SequencesTableRemovalUpdateTest.php, line 34

Class

SequencesTableRemovalUpdateTest
Tests the upgrade path for removing the sequences table.

Namespace

Drupal\Tests\system\Functional\Update

Code

public function testRunUpdates() : void {
  $connection = Database::getConnection();
  $this->assertTrue($connection->schema()
    ->tableExists('sequences'));
  $this->runUpdates();
  $this->assertFalse($connection->schema()
    ->tableExists('sequences'));
}

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