You are here

public function LocaleUpdatePathTest::testUpdatePath in Drupal 9

Tests Locale's update path.

File

core/modules/locale/tests/src/Functional/LocaleUpdatePathTest.php, line 27

Class

LocaleUpdatePathTest
Tests Locale's update path.

Namespace

Drupal\Tests\locale\Functional

Code

public function testUpdatePath() {
  $schema = Database::getConnection()
    ->schema();
  $this
    ->assertTrue($schema
    ->indexExists('locales_location', 'string_id'));
  $this
    ->assertTrue($schema
    ->indexExists('locales_location', 'string_type'));
  $this
    ->runUpdates();
  $this
    ->assertFalse($schema
    ->indexExists('locales_location', 'string_id'));
  $this
    ->assertTrue($schema
    ->indexExists('locales_location', 'string_type'));
}