Issue #3259953 by andregp, paulocs, benjifisher, AaronMcHale, vikashsoni, sonvir249, anmolgoyal74, ranjith_kumar_k_u, Abhijith S, Rinku Jacob 13, Sivaji_Ganesh_Jojodae, Gábor Hojtsy, alexpott, djsagar, worldlinemine, webchick, tanubansal, tedbow: Status report should be near the top of the Reports menu
(cherry picked from commit 1b89f43b7d
)
merge-requests/1778/head
parent
40786962bf
commit
d901d684da
|
@ -153,3 +153,4 @@ system.status:
|
|||
parent: system.admin_reports
|
||||
description: 'Get a status report about your site''s operation.'
|
||||
route_name: system.status
|
||||
weight: -60
|
||||
|
|
|
@ -15,7 +15,7 @@ class StatusTest extends BrowserTestBase {
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected static $modules = ['update_test_postupdate'];
|
||||
protected static $modules = ['update_test_postupdate', 'update'];
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@ -37,6 +37,7 @@ class StatusTest extends BrowserTestBase {
|
|||
|
||||
$admin_user = $this->drupalCreateUser([
|
||||
'administer site configuration',
|
||||
'access site reports',
|
||||
]);
|
||||
$this->drupalLogin($admin_user);
|
||||
}
|
||||
|
@ -45,6 +46,10 @@ class StatusTest extends BrowserTestBase {
|
|||
* Tests that the status page returns.
|
||||
*/
|
||||
public function testStatusPage() {
|
||||
// Verify if the 'Status report' is the first item link.
|
||||
$this->drupalGet('admin/reports');
|
||||
$this->assertEquals('Status report', $this->cssSelect('.list-group :first-child')[0]->getText());
|
||||
|
||||
// Go to Administration.
|
||||
$this->drupalGet('admin/reports/status');
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
|
Loading…
Reference in New Issue