Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a05ecf2a
Commit
a05ecf2a
authored
Jan 02, 2014
by
webchick
Browse files
Issue
#2068471
follow-up by dawehner, Crell, jbrown: Fix fatal error in admin/reports/status
parent
3e13755d
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/system/lib/Drupal/system/Tests/System/StatusTest.php
0 → 100644
View file @
a05ecf2a
<?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.'
);
}
}
core/modules/system/system.routing.yml
View file @
a05ecf2a
...
...
@@ -272,7 +272,7 @@ system.theme_enable:
system.status
:
path
:
'
/admin/reports/status'
defaults
:
_cont
roller
:
'
Drupal\system\Controller\SystemInfoController::status'
_cont
ent
:
'
Drupal\system\Controller\SystemInfoController::status'
_title
:
'
Status
report'
requirements
:
_permission
:
'
administer
site
configuration'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment