private function DBLogTest::verifyEvents

Generates and then verifies various types of events.

1 call to DBLogTest::verifyEvents()
DBLogTest::testDBLog in drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DBLogTest.php
Tests Database Logging module functionality through interfaces.

File

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

Class

DBLogTest
Tests logging messages to the database.

Namespace

Drupal\dblog\Tests

Code

private function verifyEvents() {

  // Invoke events.
  $this
    ->doUser();
  $this
    ->drupalCreateContentType(array(
    'type' => 'article',
    'name' => t('Article'),
  ));
  $this
    ->drupalCreateContentType(array(
    'type' => 'page',
    'name' => t('Basic page'),
  ));
  $this
    ->doNode('article');
  $this
    ->doNode('page');
  $this
    ->doNode('poll');

  // When a user account is canceled, any content they created remains but the
  // uid = 0. Records in the watchdog table related to that user have the uid
  // set to zero.
}