-
Notifications
You must be signed in to change notification settings - Fork 42
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
[ET-2297] Follow Up - Fixing tests #3579
base: master
Are you sure you want to change the base?
Conversation
…emplate for emails
…age-template-override-path-correction [ET-2296] Correct template override path for My Tickets page
…s-calendar/event-tickets into feature/add_ian_for_et
…s-calendar/event-tickets into feature/add_ian_for_et
…s-calendar/event-tickets into feature/add_ian_for_et
…m:the-events-calendar/event-tickets into fix/ET-2309-prevent-fatal-attenddee-model
* Modify pup config and GitHub zip workflow. * Organize composer.json and add code to prevent composer from timing out when running pup build commands. * Add distfiles * update-browserslist (bonus)
…vent-tickets into fix/ET-2309-prevent-fatal-attenddee-model
…m:the-events-calendar/event-tickets into fix/ET-2309-prevent-fatal-attenddee-model
Co-authored-by: Stephen Page <[email protected]>
…-fatal-attenddee-model Prevent fatal error for Attendee Models with Invalid Orders
* @since TBD | ||
*/ | ||
protected function do_register(): void { | ||
add_filter( 'tec_tickets_commerce_prepare_order_for_email', [ $this, 'add_fees_to_emails'] , 10, 2 ); |
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.
[phpcs] reported by reviewdog 🐶NormalizedArrays.Arrays.ArrayBraceSpacing.SpaceBeforeArrayCloserSingleLine
Expected 1 space before the array closer in a single line array. Found: no spaces
* @since TBD | ||
*/ | ||
protected function do_register(): void { | ||
add_filter( 'tec_tickets_commerce_prepare_order_for_email', [ $this, 'add_fees_to_emails'] , 10, 2 ); |
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.
[phpcs] reported by reviewdog 🐶Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma
Space found before comma in argument list
remove_filter( 'tec_tickets_commerce_prepare_order_for_email', [ $this, 'add_fees_to_emails' ] ); | ||
} | ||
|
||
/** |
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.
[phpcs] reported by reviewdog 🐶Squiz.Commenting.FunctionComment.MissingParamTag
Doc comment for parameter "$original_items" missing
🎫 Ticket
ET-2297
🗒️ Description
In PR #3558 I introduced new tests that did not account for the passage of time which will cause snapshots to fail if not updated every day. This PR adds the use of
With_Clock_Mock
to "freeze time" for the snapshot.I also removed an extra blank line from the Fee Template that was missed in the initial PR.
🎥 Artifacts
✔️ Checklist
npm run changelog
to add changelog file(s). More info herewpunit
orintegration
tests.wpunit
orintegration
tests.