function DbLogTest::clearLogsEntries

Same name in other branches
  1. 9 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::clearLogsEntries()
  2. 10 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::clearLogsEntries()
  3. 11.x core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::clearLogsEntries()

Clear the entry logs by clicking on 'Clear log messages' button.

2 calls to DbLogTest::clearLogsEntries()
DbLogTest::testDBLogAddAndClear in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests the addition and clearing of log events through the admin interface.
DbLogTest::testFilter in core/modules/dblog/tests/src/Functional/DbLogTest.php
Tests the database log filter functionality at admin/reports/dblog.

File

core/modules/dblog/tests/src/Functional/DbLogTest.php, line 269

Class

DbLogTest
Generate events and verify dblog entries; verify user access to log reports based on permissions.

Namespace

Drupal\Tests\dblog\Functional

Code

protected function clearLogsEntries() {
    $this->drupalGet(Url::fromRoute('dblog.confirm'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.