function LocaleUpdatePathTest::testUpdatePath

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

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