From a05ecf2a9e7e5309979f0d282bc2b89eb609ad4b Mon Sep 17 00:00:00 2001 From: webchick Date: Thu, 2 Jan 2014 09:32:26 -0800 Subject: [PATCH] Issue #2068471 follow-up by dawehner, Crell, jbrown: Fix fatal error in admin/reports/status --- .../Drupal/system/Tests/System/StatusTest.php | 49 +++++++++++++++++++ core/modules/system/system.routing.yml | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 core/modules/system/lib/Drupal/system/Tests/System/StatusTest.php diff --git a/core/modules/system/lib/Drupal/system/Tests/System/StatusTest.php b/core/modules/system/lib/Drupal/system/Tests/System/StatusTest.php new file mode 100644 index 00000000000..e2a4298f6c3 --- /dev/null +++ b/core/modules/system/lib/Drupal/system/Tests/System/StatusTest.php @@ -0,0 +1,49 @@ + 'Status page', + 'description' => 'Tests output on the status overview page.', + 'group' => 'System', + ); + } + + /** + * {@inheritdoc} + */ + protected function setUp() { + parent::setUp(); + + $admin_user = $this->drupalCreateUser(array( + 'administer site configuration', + )); + $this->drupalLogin($admin_user); + } + + /** + * Tests that the status page returns. + */ + public function testStatusPage() { + // Go to Administration. + $this->drupalGet('admin/reports/status'); + $this->assertResponse(200, 'The status page is reachable.'); + } + +} diff --git a/core/modules/system/system.routing.yml b/core/modules/system/system.routing.yml index 4d56d473504..fadc21ab9ba 100644 --- a/core/modules/system/system.routing.yml +++ b/core/modules/system/system.routing.yml @@ -272,7 +272,7 @@ system.theme_enable: system.status: path: '/admin/reports/status' defaults: - _controller: 'Drupal\system\Controller\SystemInfoController::status' + _content: 'Drupal\system\Controller\SystemInfoController::status' _title: 'Status report' requirements: _permission: 'administer site configuration'