Issue #2068471 follow-up by dawehner, Crell, jbrown: Fix fatal error in admin/reports/status
parent
3e13755d1f
commit
a05ecf2a9e
|
@ -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.');
|
||||
}
|
||||
|
||||
}
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue