Commit a05ecf2a authored by webchick's avatar webchick
Browse files

Issue #2068471 follow-up by dawehner, Crell, jbrown: Fix fatal error in admin/reports/status

parent 3e13755d
<?php
/**
* @file
* Contains \Drupal\system\Tests\System\StatusTest.
*/
namespace Drupal\system\Tests\System;
use Drupal\simpletest\WebTestBase;
/**
* Tests administrative status page.
*/
class StatusTest extends WebTestBase {
/**
* {@inheritdoc}
*/
public static function getInfo() {
return array(
'name' => '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.');
}
}
......@@ -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'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment