function RouteAliasUpdateTest::testRunUpdates
Tests the upgrade path for adding aliases to the router table.
File
- 
              core/
modules/ system/ tests/ src/ Functional/ Update/ RouteAliasUpdateTest.php, line 31  
Class
- RouteAliasUpdateTest
 - Tests the upgrade path for the router table update.
 
Namespace
Drupal\Tests\system\Functional\UpdateCode
public function testRunUpdates() : void {
  $connection = Database::getConnection();
  $this->assertFalse($connection->schema()
    ->fieldExists('router', 'alias'));
  $this->runUpdates();
  $this->assertTrue($connection->schema()
    ->fieldExists('router', 'alias'));
  $this->assertTrue($connection->schema()
    ->indexExists('router', 'alias'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.