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

Update test environment setup to resolve notice #335

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

martynmjones
Copy link
Contributor

@martynmjones martynmjones commented Nov 24, 2023

Changes proposed in this Pull Request:

Closes #334

Updates UnitTestsBootstrap to run install_wc on the init hook to resolve the notice.

Screenshots:

Screenshot 2023-11-24 at 15 00 07

Detailed test instructions:

  1. Confirm tests pass without triggering a notice using the latest version of WooCommerce

Additional

  • PHP unit tests failed but they are fixed here: Update phpunit polyfills to 1.1 #333. Local tests passes if you run composer require --dev yoast/phpunit-polyfills:"^1.1.0" && composer install

Changelog entry

Tweak - Test environment setup to resolve notice

@martynmjones martynmjones self-assigned this Nov 24, 2023
@github-actions github-actions bot added changelog: fix Took care of something that wasn't working. type: bug The issue/PR is a confirmed bug. labels Nov 24, 2023
@martynmjones martynmjones changed the title Change install_wc hook Update test environment setup to resolve notice Nov 24, 2023
@martynmjones martynmjones requested a review from a team November 27, 2023 17:03
Copy link
Member

@tomalec tomalec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martynmjones martynmjones merged commit 62f9c5f into trunk Nov 28, 2023
5 checks passed
@martynmjones martynmjones deleted the fix/334-php-unittests-notice branch November 28, 2023 06:50
@tomalec tomalec mentioned this pull request Nov 28, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Took care of something that wasn't working. type: bug The issue/PR is a confirmed bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notice when running unit tests
2 participants