diff --git a/core/modules/system/system.links.menu.yml b/core/modules/system/system.links.menu.yml index b5f9d87157c5..ab592cf40316 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 3eb7ee334dca..87be2ce58a54 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);