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.
The order module provides no test coverage for TimestampEventSubscriber, to assert that the Placed timestamp is properly generated.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2848183-7.patch | 4.43 KB | mglaman |
|
Comments
Comment #2
agoradesign CreditAttribution: agoradesign commentedAnd I see, that the subscriber is using the REQUEST_TIME constant instead of the Time service -> that should be refactored when writing the test
Comment #3
vasikeAnd there is a PR for this : https://github.com/drupalcommerce/commerce/pull/624
p.s. used Commerce Time service for REQUEST_TIME value
Comment #4
agoradesign CreditAttribution: agoradesign commentedYou should inject the service rather than calling \Drupal::service('commerce.time')
Comment #5
mglamanCommented on the PR
Comment #6
vasikePR updated.
Thank you : @agoradesign & @mglaman
Comment #7
mglamanRebased the PR and here is the latest patch.
Comment #9
mglamanThanks! Committed.