Skip to content
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

Open
wants to merge 86 commits into
base: master
Choose a base branch
from

Conversation

sdokus
Copy link
Contributor

@sdokus sdokus commented Feb 20, 2025

🎫 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

  • Ran npm run changelog to add changelog file(s). More info here
  • Code is covered by NEW wpunit or integration tests.
  • Code is covered by EXISTING wpunit or integration tests.
  • Are all the required tests passing?
  • Automated code review comments are addressed.
  • Have you added Artifacts?
  • Check the base branch for your PR.
  • Add your PR to the project board for the release.

sdokus and others added 30 commits February 10, 2025 16:06
…age-template-override-path-correction

[ET-2296] Correct template override path for My Tickets page
bordoni and others added 22 commits February 19, 2025 12:28
…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
…-fatal-attenddee-model

Prevent fatal error for Attendee Models with Invalid Orders
@sdokus sdokus added question Needs an answer to one or more questions before merging. hold Status: on hold–do not proceed with other status items. labels Feb 20, 2025
@sdokus sdokus self-assigned this Feb 20, 2025
* @since TBD
*/
protected function do_register(): void {
add_filter( 'tec_tickets_commerce_prepare_order_for_email', [ $this, 'add_fees_to_emails'] , 10, 2 );
Copy link
Contributor

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 );
Copy link
Contributor

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' ] );
}

/**
Copy link
Contributor

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

@dpanta94 dpanta94 changed the base branch from release/T25.batman to master February 24, 2025 20:12
@dpanta94 dpanta94 added the needs release Needs an associated release in Jira before merging. label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Status: on hold–do not proceed with other status items. needs release Needs an associated release in Jira before merging. question Needs an answer to one or more questions before merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants