
| Current Path : /var/www/html/rocksensor1/web/core/modules/path_alias/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/html/rocksensor1/web/core/modules/path_alias/tests/src/Functional/PathAliasUpdateTest.php |
<?php
declare(strict_types=1);
namespace Drupal\Tests\path_alias\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests update hooks the path_alias module.
*
* @group path_alias
*/
class PathAliasUpdateTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles[] = __DIR__ . '/../../../../system/tests/fixtures/update/drupal-9.4.0.bare.standard.php.gz';
}
/**
* Tests path_alias_post_update_drop_path_alias_status_index.
*/
public function testPathAliasStatusIndexRemoved(): void {
$schema = \Drupal::database()->schema();
$this->assertTrue($schema->indexExists('path_alias', 'path_alias__status'));
$this->runUpdates();
$this->assertFalse($schema->indexExists('path_alias', 'path_alias__status'));
}
}