You are here

private function MongoDBLogTestCase::verifyEvents in MongoDB 8

Same name and namespace in other branches
  1. 6 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::verifyEvents()
  2. 7 mongodb_watchdog/mongodb_watchdog.test \MongoDBLogTestCase::verifyEvents()

Verify events.

1 call to MongoDBLogTestCase::verifyEvents()
MongoDBLogTestCase::ZtestDBLog in mongodb_watchdog/mongodb_watchdog.test
Login users, create dblog events, and test dblog functionality through the admin and user interfaces.

File

mongodb_watchdog/mongodb_watchdog.test, line 312
Test class for MongoDB_watchdog.

Class

MongoDBLogTestCase
Test the behaviour of watchdog() mongodb_watchdog, not dblog

Code

private function verifyEvents() {

  // Invoke events.
  $this
    ->doUser();
  $this
    ->doNode('article');
  $this
    ->doNode('blog');
  $this
    ->doNode('page');
  $this
    ->doNode('poll');

  // When a user account is canceled, any content they created remains but the
  // uid = 0. Their blog entry shows as "'s blog" on the home page. Records
  // in the watchdog table related to that user have the uid set to zero.
}