Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The message AuditLogEvent class is the core class to communicate events from the interepreters into the registers. It should have a unit test coverage.
Proposed resolution
Write a unit test for this class.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#8 | audit_log-auditlogeventtest-2863124-8.patch | 757 bytes | shawn_smiley |
| |||
#5 | 2863124-5.patch | 1.67 KB | dagmar |
| |||
#3 | audit_log-auditlogeventtest-2863124-3.patch | 1.98 KB | shawn_smiley |
|
Comments
Comment #2
shawn_smiley CreditAttribution: shawn_smiley at Achieve Internet commentedComment #3
shawn_smiley CreditAttribution: shawn_smiley at Achieve Internet commentedBase unit test of the AuditLogEvent class provided in the attached patch file.
We should have a separate test for AuditLogLogger->log() which handles creating the AuditLogEvent class.
Comment #4
dagmarThanks. some minor comments.
Wrong namespace and folder for unit test cases.
We can use UnitTest instead of Kernel
Comment #5
dagmarAdded coverage for
getMessagePlaceholders
.Comment #7
dagmarComment #8
shawn_smiley CreditAttribution: shawn_smiley at Achieve Internet commentedMinor update to fix the namespace issue.
Comment #9
dagmarThanks, I applied the change as part of #2863536: Don't use REQUEST_TIME until Drupal 8.4.0 be ready