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

8.0.x
webchick 2014-01-02 09:32:26 -08:00
parent 3e13755d1f
commit a05ecf2a9e
2 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,49 @@
<?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.');
}
}

View File

@ -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'