function DBLogTestCase::testDBLog
7.x dblog.test | DBLogTestCase::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-7.x/
modules/ dblog/ dblog.test, line 52 - Tests for dblog.module.
Class
- DBLogTestCase
- Tests logging messages to the database.
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);
}