diff --git a/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php b/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php index 942239b..0b132a9 100644 --- a/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php +++ b/core/modules/breakpoint/src/Tests/BreakpointDiscoveryTest.php @@ -24,7 +24,6 @@ class BreakpointDiscoveryTest extends KernelTestBase { protected function setUp() { parent::setUp(); - $this->installSchema('system', array('router')); \Drupal::service('theme_handler')->install(array('breakpoint_theme_test')); } diff --git a/core/modules/comment/src/Tests/Migrate/d6/MigrateCommentTest.php b/core/modules/comment/src/Tests/Migrate/d6/MigrateCommentTest.php index 7219d95..d69c291 100644 --- a/core/modules/comment/src/Tests/Migrate/d6/MigrateCommentTest.php +++ b/core/modules/comment/src/Tests/Migrate/d6/MigrateCommentTest.php @@ -33,7 +33,6 @@ protected function setUp() { $this->installEntitySchema('node'); $this->installEntitySchema('comment'); $this->installSchema('comment', ['comment_entity_statistics']); - $this->installSchema('system', ['router']); $this->installConfig(['comment']); // The entity.node.canonical route must exist when the RDF hook is called. diff --git a/core/modules/config/src/Tests/ConfigInstallTest.php b/core/modules/config/src/Tests/ConfigInstallTest.php index e5ac68d..321b767 100644 --- a/core/modules/config/src/Tests/ConfigInstallTest.php +++ b/core/modules/config/src/Tests/ConfigInstallTest.php @@ -30,7 +30,6 @@ class ConfigInstallTest extends KernelTestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router']); // Ensure the global variable being asserted by this test does not exist; // a previous test executed in this request/process might have set it. diff --git a/core/modules/editor/src/Tests/EditorImageDialogTest.php b/core/modules/editor/src/Tests/EditorImageDialogTest.php index b1745b0..9d6b428 100644 --- a/core/modules/editor/src/Tests/EditorImageDialogTest.php +++ b/core/modules/editor/src/Tests/EditorImageDialogTest.php @@ -41,7 +41,7 @@ class EditorImageDialogTest extends EntityUnitTestBase { protected function setUp() { parent::setUp(); $this->installEntitySchema('file'); - $this->installSchema('system', ['router', 'key_value_expire']); + $this->installSchema('system', ['key_value_expire']); $this->installSchema('node', array('node_access')); $this->installSchema('file', array('file_usage')); $this->installConfig(['node']); diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceFormatterTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceFormatterTest.php index 87da3ec..87f90b2 100644 --- a/core/modules/field/src/Tests/EntityReference/EntityReferenceFormatterTest.php +++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceFormatterTest.php @@ -75,7 +75,6 @@ protected function setUp() { ->save(); // The label formatter rendering generates links, so build the router. - $this->installSchema('system', 'router'); $this->container->get('router.builder')->rebuild(); $this->createEntityReferenceField($this->entityType, $this->bundle, $this->fieldName, 'Field test', $this->entityType, 'default', array(), FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED); diff --git a/core/modules/field/src/Tests/String/RawStringFormatterTest.php b/core/modules/field/src/Tests/String/RawStringFormatterTest.php index 60ea420..a11b9f6 100644 --- a/core/modules/field/src/Tests/String/RawStringFormatterTest.php +++ b/core/modules/field/src/Tests/String/RawStringFormatterTest.php @@ -58,7 +58,6 @@ protected function setUp() { // Configure the theme system. $this->installConfig(array('system', 'field')); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); $this->installEntitySchema('entity_test'); diff --git a/core/modules/field/src/Tests/String/StringFormatterTest.php b/core/modules/field/src/Tests/String/StringFormatterTest.php index 1703c3e..c61e4bf 100644 --- a/core/modules/field/src/Tests/String/StringFormatterTest.php +++ b/core/modules/field/src/Tests/String/StringFormatterTest.php @@ -58,7 +58,6 @@ protected function setUp() { // Configure the theme system. $this->installConfig(array('system', 'field')); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); $this->installEntitySchema('entity_test_rev'); diff --git a/core/modules/field/src/Tests/String/UuidFormatterTest.php b/core/modules/field/src/Tests/String/UuidFormatterTest.php index 92554bf..def8060 100644 --- a/core/modules/field/src/Tests/String/UuidFormatterTest.php +++ b/core/modules/field/src/Tests/String/UuidFormatterTest.php @@ -32,7 +32,6 @@ protected function setUp() { parent::setUp(); $this->installConfig(['system', 'field']); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); $this->installEntitySchema('entity_test'); } diff --git a/core/modules/filter/src/Tests/TextFormatElementFormTest.php b/core/modules/filter/src/Tests/TextFormatElementFormTest.php index b889c4a..202e746 100644 --- a/core/modules/filter/src/Tests/TextFormatElementFormTest.php +++ b/core/modules/filter/src/Tests/TextFormatElementFormTest.php @@ -41,7 +41,7 @@ class TextFormatElementFormTest extends KernelTestBase implements FormInterface protected function setUp() { parent::setUp(); $this->installEntitySchema('user'); - $this->installSchema('system', ['sequences', 'router']); + $this->installSchema('system', ['sequences']); $this->installConfig(['filter', 'filter_test']); // Filter tips link to the full-page. \Drupal::service('router.builder')->rebuild(); diff --git a/core/modules/help/src/Tests/HelpEmptyPageTest.php b/core/modules/help/src/Tests/HelpEmptyPageTest.php index 5fd1339..e0c1f35 100644 --- a/core/modules/help/src/Tests/HelpEmptyPageTest.php +++ b/core/modules/help/src/Tests/HelpEmptyPageTest.php @@ -27,15 +27,6 @@ class HelpEmptyPageTest extends KernelTestBase { /** * {@inheritdoc} */ - protected function setUp() { - parent::setUp(); - - $this->installSchema('system', 'router'); - } - - /** - * {@inheritdoc} - */ public function containerBuild(ContainerBuilder $container) { parent::containerBuild($container); diff --git a/core/modules/language/src/Tests/EntityUrlLanguageTest.php b/core/modules/language/src/Tests/EntityUrlLanguageTest.php index f172b38..5d0872e 100644 --- a/core/modules/language/src/Tests/EntityUrlLanguageTest.php +++ b/core/modules/language/src/Tests/EntityUrlLanguageTest.php @@ -41,7 +41,6 @@ protected function setUp() { $this->installEntitySchema('entity_test'); $this->installEntitySchema('configurable_language'); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); // In order to reflect the changes for a multilingual site in the container diff --git a/core/modules/menu_link_content/src/Tests/MenuLinkContentCacheabilityBubblingTest.php b/core/modules/menu_link_content/src/Tests/MenuLinkContentCacheabilityBubblingTest.php index 825f493..7a7144e 100644 --- a/core/modules/menu_link_content/src/Tests/MenuLinkContentCacheabilityBubblingTest.php +++ b/core/modules/menu_link_content/src/Tests/MenuLinkContentCacheabilityBubblingTest.php @@ -39,7 +39,7 @@ protected function setUp() { $this->installEntitySchema('menu_link_content'); $this->installEntitySchema('user'); - $this->installSchema('system', ['url_alias', 'router']); + $this->installSchema('system', ['url_alias']); // Ensure that the weight of module_link_content is higher than system. // @see menu_link_content_install() diff --git a/core/modules/menu_link_content/src/Tests/MenuLinkContentDeriverTest.php b/core/modules/menu_link_content/src/Tests/MenuLinkContentDeriverTest.php index b5ae7ae..b239558 100644 --- a/core/modules/menu_link_content/src/Tests/MenuLinkContentDeriverTest.php +++ b/core/modules/menu_link_content/src/Tests/MenuLinkContentDeriverTest.php @@ -33,7 +33,6 @@ protected function setUp() { parent::setUp(); $this->installEntitySchema('menu_link_content'); - $this->installSchema('system', 'router'); } /** diff --git a/core/modules/menu_link_content/src/Tests/Migrate/d6/MigrateMenuLinkTest.php b/core/modules/menu_link_content/src/Tests/Migrate/d6/MigrateMenuLinkTest.php index 8fc22ef..495b6f0 100644 --- a/core/modules/menu_link_content/src/Tests/Migrate/d6/MigrateMenuLinkTest.php +++ b/core/modules/menu_link_content/src/Tests/Migrate/d6/MigrateMenuLinkTest.php @@ -27,7 +27,6 @@ class MigrateMenuLinkTest extends MigrateDrupal6TestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router']); $this->installEntitySchema('menu_link_content'); $this->executeMigrations(['menu', 'menu_links']); } diff --git a/core/modules/menu_link_content/src/Tests/Migrate/d7/MigrateMenuLinkTest.php b/core/modules/menu_link_content/src/Tests/Migrate/d7/MigrateMenuLinkTest.php index 68c6d7a..b38118b 100644 --- a/core/modules/menu_link_content/src/Tests/Migrate/d7/MigrateMenuLinkTest.php +++ b/core/modules/menu_link_content/src/Tests/Migrate/d7/MigrateMenuLinkTest.php @@ -32,7 +32,6 @@ class MigrateMenuLinkTest extends MigrateDrupal7TestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router']); $this->installEntitySchema('menu_link_content'); $this->executeMigration('menu'); \Drupal::service('router.builder')->rebuild(); diff --git a/core/modules/menu_link_content/src/Tests/PathAliasMenuLinkContentTest.php b/core/modules/menu_link_content/src/Tests/PathAliasMenuLinkContentTest.php index 3cdec3f..8b8a963 100644 --- a/core/modules/menu_link_content/src/Tests/PathAliasMenuLinkContentTest.php +++ b/core/modules/menu_link_content/src/Tests/PathAliasMenuLinkContentTest.php @@ -32,7 +32,7 @@ protected function setUp() { parent::setUp(); $this->installEntitySchema('menu_link_content'); - $this->installSchema('system', ['url_alias', 'router']); + $this->installSchema('system', ['url_alias']); // Ensure that the weight of module_link_content is higher than system. // @see menu_link_content_install() diff --git a/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php b/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php index ddf7559..2441a57 100644 --- a/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php +++ b/core/modules/node/src/Tests/NodeBodyFieldStorageTest.php @@ -29,7 +29,6 @@ class NodeBodyFieldStorageTest extends KernelTestBase { protected function setUp() { parent::setUp(); $this->installSchema('system', 'sequences'); - $this->installSchema('system', array('router')); // Necessary for module uninstall. $this->installSchema('user', 'users_data'); $this->installEntitySchema('user'); diff --git a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php index 6fa9c1b..3a545b4 100644 --- a/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php +++ b/core/modules/path/tests/src/Kernel/PathNoCanonicalLinkTest.php @@ -30,7 +30,6 @@ protected function setUp() { $this->installEntitySchema('entity_test'); $this->installEntitySchema('entity_test_mul'); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); // Adding german language. diff --git a/core/modules/rest/src/Tests/RestLinkManagerTest.php b/core/modules/rest/src/Tests/RestLinkManagerTest.php index 4adee7c..a8acb33 100644 --- a/core/modules/rest/src/Tests/RestLinkManagerTest.php +++ b/core/modules/rest/src/Tests/RestLinkManagerTest.php @@ -25,7 +25,6 @@ class RestLinkManagerTest extends KernelTestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router']); \Drupal::service('router.builder')->rebuild(); } diff --git a/core/modules/serialization/src/Tests/NormalizerTestBase.php b/core/modules/serialization/src/Tests/NormalizerTestBase.php index 50e3c87..30c8e95 100644 --- a/core/modules/serialization/src/Tests/NormalizerTestBase.php +++ b/core/modules/serialization/src/Tests/NormalizerTestBase.php @@ -25,7 +25,7 @@ protected function setUp() { $this->installEntitySchema('entity_test_mulrev'); $this->installEntitySchema('user'); - $this->installSchema('system', array('url_alias', 'router')); + $this->installSchema('system', array('url_alias')); $this->installConfig(array('field')); \Drupal::service('router.builder')->rebuild(); \Drupal::moduleHandler()->invoke('rest', 'install'); diff --git a/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetTest.php b/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetTest.php index ff2cd8f..4d41751 100644 --- a/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetTest.php +++ b/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetTest.php @@ -35,7 +35,6 @@ class MigrateShortcutSetTest extends MigrateDrupal7TestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', array('router')); $this->installEntitySchema('shortcut'); $this->installEntitySchema('menu_link_content'); \Drupal::service('router.builder')->rebuild(); diff --git a/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetUsersTest.php b/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetUsersTest.php index ed63ac0..2b48e54 100644 --- a/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetUsersTest.php +++ b/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutSetUsersTest.php @@ -34,7 +34,6 @@ class MigrateShortcutSetUsersTest extends MigrateDrupal7TestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', array('router')); $this->installEntitySchema('shortcut'); $this->installEntitySchema('menu_link_content'); $this->installSchema('shortcut', ['shortcut_set_users']); diff --git a/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutTest.php b/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutTest.php index 0d333fe..250418b 100644 --- a/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutTest.php +++ b/core/modules/shortcut/src/Tests/Migrate/d7/MigrateShortcutTest.php @@ -35,7 +35,6 @@ class MigrateShortcutTest extends MigrateDrupal7TestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', array('router')); $this->installEntitySchema('shortcut'); $this->installEntitySchema('menu_link_content'); \Drupal::service('router.builder')->rebuild(); diff --git a/core/modules/system/src/Tests/Common/AttachedAssetsTest.php b/core/modules/system/src/Tests/Common/AttachedAssetsTest.php index 3ab2d31..99c8829 100644 --- a/core/modules/system/src/Tests/Common/AttachedAssetsTest.php +++ b/core/modules/system/src/Tests/Common/AttachedAssetsTest.php @@ -51,7 +51,6 @@ class AttachedAssetsTest extends KernelTestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', array('router')); $this->container->get('router.builder')->rebuild(); $this->assetResolver = $this->container->get('asset.resolver'); diff --git a/core/modules/system/src/Tests/Common/PageRenderTest.php b/core/modules/system/src/Tests/Common/PageRenderTest.php index 1b4c387..f7a093d 100644 --- a/core/modules/system/src/Tests/Common/PageRenderTest.php +++ b/core/modules/system/src/Tests/Common/PageRenderTest.php @@ -21,7 +21,6 @@ class PageRenderTest extends KernelTestBase { */ function testHookPageAttachmentsExceptions() { $this->enableModules(['common_test', 'system']); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); $this->assertPageRenderHookExceptions('common_test', 'hook_page_attachments'); @@ -32,7 +31,6 @@ function testHookPageAttachmentsExceptions() { */ function testHookPageAlter() { $this->enableModules(['common_test', 'system']); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); $this->assertPageRenderHookExceptions('common_test', 'hook_page_attachments_alter'); diff --git a/core/modules/system/src/Tests/Common/RenderElementTypesTest.php b/core/modules/system/src/Tests/Common/RenderElementTypesTest.php index b71b9c1..fdbdd5b 100644 --- a/core/modules/system/src/Tests/Common/RenderElementTypesTest.php +++ b/core/modules/system/src/Tests/Common/RenderElementTypesTest.php @@ -28,7 +28,6 @@ class RenderElementTypesTest extends KernelTestBase { protected function setUp() { parent::setUp(); $this->installConfig(array('system')); - $this->installSchema('system', array('router')); \Drupal::service('router.builder')->rebuild(); } diff --git a/core/modules/system/src/Tests/Condition/CurrentThemeConditionTest.php b/core/modules/system/src/Tests/Condition/CurrentThemeConditionTest.php index 303f583..c9a75a3 100644 --- a/core/modules/system/src/Tests/Condition/CurrentThemeConditionTest.php +++ b/core/modules/system/src/Tests/Condition/CurrentThemeConditionTest.php @@ -27,7 +27,6 @@ class CurrentThemeConditionTest extends KernelTestBase { */ protected function setUp() { parent::setUp(); - $this->installSchema('system', array('router')); } /** diff --git a/core/modules/system/src/Tests/Entity/Element/EntityAutocompleteElementFormTest.php b/core/modules/system/src/Tests/Entity/Element/EntityAutocompleteElementFormTest.php index 3e0386c..17f93c9 100644 --- a/core/modules/system/src/Tests/Entity/Element/EntityAutocompleteElementFormTest.php +++ b/core/modules/system/src/Tests/Entity/Element/EntityAutocompleteElementFormTest.php @@ -50,7 +50,7 @@ class EntityAutocompleteElementFormTest extends EntityUnitTestBase implements Fo protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router', 'key_value_expire']); + $this->installSchema('system', ['key_value_expire']); \Drupal::service('router.builder')->rebuild(); $this->testUser = User::create(array( diff --git a/core/modules/system/src/Tests/Entity/EntitySchemaTest.php b/core/modules/system/src/Tests/Entity/EntitySchemaTest.php index 08395ff..4bf148e 100644 --- a/core/modules/system/src/Tests/Entity/EntitySchemaTest.php +++ b/core/modules/system/src/Tests/Entity/EntitySchemaTest.php @@ -29,7 +29,6 @@ class EntitySchemaTest extends EntityUnitTestBase { protected function setUp() { parent::setUp(); $this->installSchema('user', array('users_data')); - $this->installSchema('system', array('router')); $this->database = $this->container->get('database'); } diff --git a/core/modules/system/src/Tests/Entity/FieldWidgetConstraintValidatorTest.php b/core/modules/system/src/Tests/Entity/FieldWidgetConstraintValidatorTest.php index 4f223e3..68bfee6 100644 --- a/core/modules/system/src/Tests/Entity/FieldWidgetConstraintValidatorTest.php +++ b/core/modules/system/src/Tests/Entity/FieldWidgetConstraintValidatorTest.php @@ -29,7 +29,7 @@ class FieldWidgetConstraintValidatorTest extends KernelTestBase { protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router', 'key_value']); + $this->installSchema('system', ['key_value']); $this->container->get('router.builder')->rebuild(); $this->installEntitySchema('user'); diff --git a/core/modules/system/src/Tests/File/StreamWrapperTest.php b/core/modules/system/src/Tests/File/StreamWrapperTest.php index 343cd83..5816861 100644 --- a/core/modules/system/src/Tests/File/StreamWrapperTest.php +++ b/core/modules/system/src/Tests/File/StreamWrapperTest.php @@ -102,7 +102,6 @@ function testUriFunctions() { // Test file_create_url() // TemporaryStream::getExternalUrl() uses Url::fromRoute(), which needs // route information to work. - $this->installSchema('system', 'router'); $this->container->get('router.builder')->rebuild(); $this->assertTrue(strpos(file_create_url('temporary://test.txt'), 'system/temporary?file=test.txt'), 'Temporary external URL correctly built.'); $this->assertTrue(strpos(file_create_url('public://test.txt'), Settings::get('file_public_path') . '/test.txt'), 'Public external URL correctly built.'); diff --git a/core/modules/system/src/Tests/Render/Element/TableTest.php b/core/modules/system/src/Tests/Render/Element/TableTest.php index 7e90979..827b55a 100644 --- a/core/modules/system/src/Tests/Render/Element/TableTest.php +++ b/core/modules/system/src/Tests/Render/Element/TableTest.php @@ -29,7 +29,6 @@ class TableTest extends KernelTestBase { protected function setUp() { parent::setUp(); - $this->installSchema('system', 'router'); \Drupal::service('router.builder')->rebuild(); } diff --git a/core/modules/system/src/Tests/RouteProcessor/RouteNoneTest.php b/core/modules/system/src/Tests/RouteProcessor/RouteNoneTest.php index 551e4d8..f029156 100644 --- a/core/modules/system/src/Tests/RouteProcessor/RouteNoneTest.php +++ b/core/modules/system/src/Tests/RouteProcessor/RouteNoneTest.php @@ -42,7 +42,6 @@ class RouteNoneTest extends KernelTestBase { protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router']); \Drupal::service('router.builder')->rebuild(); $this->urlGenerator = \Drupal::urlGenerator(); diff --git a/core/modules/system/src/Tests/RouteProcessor/RouteProcessorCurrentIntegrationTest.php b/core/modules/system/src/Tests/RouteProcessor/RouteProcessorCurrentIntegrationTest.php index bc341a6..8cdb9c7 100644 --- a/core/modules/system/src/Tests/RouteProcessor/RouteProcessorCurrentIntegrationTest.php +++ b/core/modules/system/src/Tests/RouteProcessor/RouteProcessorCurrentIntegrationTest.php @@ -41,7 +41,6 @@ class RouteProcessorCurrentIntegrationTest extends KernelTestBase { protected function setUp() { parent::setUp(); - $this->installSchema('system', ['router']); \Drupal::service('router.builder')->rebuild(); $this->urlGenerator = \Drupal::urlGenerator(); diff --git a/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php b/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php index 98515b8..3521545 100644 --- a/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php +++ b/core/modules/system/src/Tests/Routing/ContentNegotiationRoutingTest.php @@ -31,7 +31,7 @@ protected function setUp() { \Drupal::unsetContainer(); parent::setUp(); - $this->installSchema('system', ['router', 'url_alias']); + $this->installSchema('system', ['url_alias']); \Drupal::service('router.builder')->rebuild(); } diff --git a/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php b/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php index 9eae9b2..a404916 100644 --- a/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php +++ b/core/modules/system/src/Tests/Routing/ExceptionHandlingTest.php @@ -99,6 +99,42 @@ public function testHtml404() { } /** + * Tests that the exception response is executed in the original context. + */ + public function testExceptionResponseGeneratedForOriginalRequest() { + // Test with 404 path pointing to a route that uses '_controller'. + $response = $this->doTest404Route('/router_test/test25'); + $this->assertTrue(strpos($response->getContent(), '/not-found') !== FALSE); + + // Test with 404 path pointing to a route that uses '_form'. + $response = $this->doTest404Route('/router_test/test26'); + $this->assertTrue(strpos($response->getContent(), '