From d901d684da07be96dd054540e4bc2e74d5bc7964 Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Mon, 14 Feb 2022 12:07:48 +0000 Subject: [PATCH] =?UTF-8?q?Issue=20#3259953=20by=20andregp,=20paulocs,=20b?= =?UTF-8?q?enjifisher,=20AaronMcHale,=20vikashsoni,=20sonvir249,=20anmolgo?= =?UTF-8?q?yal74,=20ranjith=5Fkumar=5Fk=5Fu,=20Abhijith=20S,=20Rinku=20Jac?= =?UTF-8?q?ob=2013,=20Sivaji=5FGanesh=5FJojodae,=20G=C3=A1bor=20Hojtsy,=20?= =?UTF-8?q?alexpott,=20djsagar,=20worldlinemine,=20webchick,=20tanubansal,?= =?UTF-8?q?=20tedbow:=20Status=20report=20should=20be=20near=20the=20top?= =?UTF-8?q?=20of=20the=20Reports=20menu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 1b89f43b7d3543bf1f6f420d185ef3b56cd2e448) --- core/modules/system/system.links.menu.yml | 1 + .../system/tests/src/Functional/System/StatusTest.php | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/modules/system/system.links.menu.yml b/core/modules/system/system.links.menu.yml index b5f9d87157c..ab592cf4031 100644 --- a/core/modules/system/system.links.menu.yml +++ b/core/modules/system/system.links.menu.yml @@ -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 diff --git a/core/modules/system/tests/src/Functional/System/StatusTest.php b/core/modules/system/tests/src/Functional/System/StatusTest.php index 3eb7ee334dc..87be2ce58a5 100644 --- a/core/modules/system/tests/src/Functional/System/StatusTest.php +++ b/core/modules/system/tests/src/Functional/System/StatusTest.php @@ -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);