Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293902

Move DbLogTest::generateLogEntries() into a Trait

$
0
0

Problem/Motivation

As part of #2847428: [Meta] Modernize dblog module the plan is to use Kernel Tests to test the dblog module without require an UI.

The candidates for a Kernel Test are:

Which requires generate log entries.

It would be nice to abstract the DbLogTest::generateLogEntries() method into a trait to reuse it in both Kernel and Web based tests.

Proposed resolution

  • Create a new Trait to generate log entries.
  • Use this trait in Drupal\dblog\Tests. and in Kernel Tests

Remaining tasks

User interface changes

None

API changes

A new Trait.

Data model changes


Viewing all articles
Browse latest Browse all 293902

Trending Articles