-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[API] Sorting user orders by order number #14990
Conversation
dawkaa
commented
Apr 26, 2023
•
edited
edited
Q | A |
---|---|
Branch? | 1.13 |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Related tickets | part of #11250 |
License | MIT |
features/order/managing_orders/browsing_orders/sorting_orders_by_number.feature
Show resolved
Hide resolved
568cab5
to
9016d16
Compare
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.
Most likely a rebase will be required as well as we had some issues with static analysis due to 3rd party changes.
Other than that IMO it's good to go.
I did sorting user orders by order number.
I added tests to sorting user orders.
I added the fixes for the conversation.
/** | ||
* @Then I should see an order with :orderNumber number | ||
*/ | ||
public function iShouldSeeOrderWithNumber(string $orderNumber) |
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.
Missing return type
/** | ||
* @When I switch the way orders are sorted by :fieldName | ||
*/ | ||
public function iSwitchSortingBy($fieldName) |
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.
Missing type hint and return type
} | ||
|
||
/** | ||
* @When I switch the way orders are sorted by :fieldName |
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.
It would be good to keep the order of the methods: Given
-> When
-> Then
, so this one should be moved before Then
method, which is above
Thanks, Dawka! 🥇 |