
| Current Path : /var/www/html1/rrr/web/core/modules/locale/tests/src/Functional/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html1/rrr/web/core/modules/locale/tests/src/Functional/LocaleUpdatePathTest.php |
<?php
namespace Drupal\Tests\locale\Functional;
use Drupal\Core\Database\Database;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests Locale's update path.
*
* @group locale
*/
class LocaleUpdatePathTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
dirname(__DIR__, 4) . '/system/tests/fixtures/update/drupal-8.8.0.filled.standard.php.gz',
];
}
/**
* Tests Locale's update path.
*/
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'));
}
}