New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #2861664 by mglaman: Order assignment should generate a log to … #680
Issue #2861664 by mglaman: Order assignment should generate a log to … #680
Conversation
The build failed because of phpcs:
|
@@ -34,6 +36,7 @@ public static function getSubscribedEvents() { | |||
'commerce_order.validate.pre_transition' => ['onValidateTransition', -100], | |||
'commerce_order.fulfill.pre_transition' => ['onFulfillTransition', -100], | |||
'commerce_order.cancel.pre_transition' => ['onCancelTransition', -100], | |||
OrderEvents::ORDER_ASSIGN => ['onOrderAssign', -100], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use constants above, so let's not use it here either, to stay consistent.
Core generally discourages constants and recommends the real IDs to be used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't above because they don't exist. And that seems silly if core recommends real IDs yet constants provided. I'll change to keep it consistent here.
* Tests that an order assignment log is generated. | ||
*/ | ||
public function testOrderAssignedLog() { | ||
// Reassignment does not work on users |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is confusing (doesn't work - why?). I suggest "Reassignment is currently only done on user login."
1028fc1
to
005e904
Compare
…mark the customer conversion
d0f4e89
to
c060cf9
Compare
…mark the customer conversion (drupalcommerce#680)
…mark the customer conversion (drupalcommerce#680)
…mark the customer conversion