RouterIndexOptimizationTest.php in Zircon Profile 8
File
core/modules/system/src/Tests/Update/RouterIndexOptimizationTest.php
View source
<?php
namespace Drupal\system\Tests\Update;
class RouterIndexOptimizationTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
];
}
public function testUpdate() {
$this
->runUpdates();
$database = $this->container
->get('database');
$this
->assertFalse($database
->schema()
->indexExists('router', 'pattern_outline_fit'));
$this
->assertTrue($database
->schema()
->indexExists('router', 'pattern_outline_parts'));
}
}