function DBLogTest::testDBLog

Tests Database Logging module functionality through interfaces.

First logs in users, then creates database log events, and finally tests Database Logging module functionality through both the admin and user interfaces.

File

drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php, line 62
Definition of Drupal\dblog\Tests\DBLogTest.

Class

DBLogTest
Tests logging messages to the database.

Namespace

Drupal\dblog\Tests

Code

function testDBLog() {

  // Login the admin user.
  $this
    ->drupalLogin($this->big_user);
  $row_limit = 100;
  $this
    ->verifyRowLimit($row_limit);
  $this
    ->verifyCron($row_limit);
  $this
    ->verifyEvents();
  $this
    ->verifyReports();

  // Login the regular user.
  $this
    ->drupalLogin($this->any_user);
  $this
    ->verifyReports(403);
}