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 64
Contains \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);
}