X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fsrc%2FFunctional%2FUpdate%2FUpdatePathWithBrokenRoutingTest.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Fsrc%2FTests%2FUpdate%2FUpdatePathWithBrokenRoutingTest.php;h=1c8493d94642c4ff204541c0c08ea89548e8a301;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=e710a4ecaf756cd1d73fdcb7b9a86270816b85d9;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/web/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingTest.php b/web/core/modules/system/tests/src/Functional/Update/UpdatePathWithBrokenRoutingTest.php similarity index 56% rename from web/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingTest.php rename to web/core/modules/system/tests/src/Functional/Update/UpdatePathWithBrokenRoutingTest.php index e710a4eca..1c8493d94 100644 --- a/web/core/modules/system/src/Tests/Update/UpdatePathWithBrokenRoutingTest.php +++ b/web/core/modules/system/tests/src/Functional/Update/UpdatePathWithBrokenRoutingTest.php @@ -1,6 +1,8 @@ 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', ]; } @@ -30,16 +32,6 @@ class UpdatePathWithBrokenRoutingTest extends UpdatePathTestBase { $this->drupalGet(''); $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