Unverified Commit d901d684 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3259953 by andregp, paulocs, benjifisher, AaronMcHale, vikashsoni,...

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 1b89f43b)
parent 40786962
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
+6 −1
Original line number Diff line number Diff line
@@ -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 @@ protected function setUp(): void {

    $admin_user = $this->drupalCreateUser([
      'administer site configuration',
      'access site reports',
    ]);
    $this->drupalLogin($admin_user);
  }
@@ -45,6 +46,10 @@ protected function setUp(): void {
   * 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);