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 200
Contains \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('forum');

  // 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.
}