diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php index 5cbf208..af585fc 100644 --- a/core/modules/dblog/src/Tests/DbLogTest.php +++ b/core/modules/dblog/src/Tests/DbLogTest.php @@ -803,6 +803,7 @@ public function testOverviewLinks() { public function testClearLogsPermissions() { $this->drupalLogin($this->adminUser); $this->drupalGet('admin/reports/dblog'); + $this->assertResponse(200); // Users with 'administer site configuration' can clear logs. $this->assertTrue($this->xpath('//input[@type="submit"][@value="Clear log messages"]')); $this->drupalGet('admin/reports/dblog/confirm'); @@ -810,6 +811,8 @@ public function testClearLogsPermissions() { $this->drupalLogout(); $this->drupalLogin($this->seeOnlyUser); + $this->drupalGet('admin/reports/dblog'); + $this->assertResponse(200); // Users without 'administer site configuration' cannot clear logs. $this->assertFalse($this->xpath('//input[@type="submit"][@value="Clear log messages"]')); $this->drupalGet('admin/reports/dblog/confirm');