RouterIndexOptimizationTest.php in Drupal 8
File
core/modules/system/tests/src/Functional/Update/RouterIndexOptimizationTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class RouterIndexOptimizationTest extends UpdatePathTestBase {
protected $defaultTheme = 'stark';
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'));
}
}