private function DbLogTest::verifyEvents in Drupal 10
Same name and namespace in other branches
- 8 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::verifyEvents()
- 9 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\DbLogTest::verifyEvents()
Generates and then verifies various types of events.
File
- core/modules/ dblog/ tests/ src/ Functional/ DbLogTest.php, line 383 
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\Tests\dblog\FunctionalCode
private function verifyEvents() {
  // Invoke events.
  $this
    ->doUser();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => '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.
}