You are here

private function DbLogTest::verifyEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/dblog/src/Tests/DbLogTest.php \Drupal\dblog\Tests\DbLogTest::verifyEvents()

Generates and then verifies various types of events.

1 call to DbLogTest::verifyEvents()
DbLogTest::testDbLog in core/modules/dblog/src/Tests/DbLogTest.php
Tests Database Logging module functionality through interfaces.

File

core/modules/dblog/src/Tests/DbLogTest.php, line 241
Contains \Drupal\dblog\Tests\DbLogTest.

Class

DbLogTest
Generate events and verify dblog entries; verify user access to log reports based on permissions.

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