function LocalesLocationAddIndexUpdateTest::testIndex
Same name in other branches
- 10 core/modules/locale/tests/src/Functional/LocalesLocationAddIndexUpdateTest.php \Drupal\Tests\locale\Functional\LocalesLocationAddIndexUpdateTest::testIndex()
Tests locale_update_10300().
See also
locale_update_10300
File
-
core/
modules/ locale/ tests/ src/ Functional/ LocalesLocationAddIndexUpdateTest.php, line 33
Class
- LocalesLocationAddIndexUpdateTest
- Tests Locale update functions.
Namespace
Drupal\Tests\locale\FunctionalCode
public function testIndex() : void {
$this->assertFalse(\Drupal::database()->schema()
->indexExists('locales_location', 'type_name'));
// Run updates and test them.
$this->runUpdates();
$this->assertTrue(\Drupal::database()->schema()
->indexExists('locales_location', 'type_name'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.