<?php
-namespace Drupal\system\Tests\Update;
+namespace Drupal\Tests\system\Functional\Update;
+
+use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests the update path with a broken router.
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
- __DIR__ . '/../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
- __DIR__ . '/../../../tests/fixtures/update/drupal-8.broken_routing.php',
+ __DIR__ . '/../../../../tests/fixtures/update/drupal-8.bare.standard.php.gz',
+ __DIR__ . '/../../../../tests/fixtures/update/drupal-8.broken_routing.php',
];
}
$this->drupalGet('<front>');
$this->assertResponse(500);
- // The exceptions are expected. Do not interpret them as a test failure.
- // Not using File API; a potential error must trigger a PHP warning.
- unlink(\Drupal::root() . '/' . $this->siteDirectory . '/error.log');
- foreach ($this->assertions as $key => $assertion) {
- if (strpos($assertion['message'], 'core/modules/system/tests/modules/update_script_test/src/PathProcessor/BrokenInboundPathProcessor.php') !== FALSE) {
- unset($this->assertions[$key]);
- $this->deleteAssert($assertion['message_id']);
- }
- }
-
$this->runUpdates();
// Remove the simulation of the broken router, and make sure we can get to