Skip to content

PHPUnit Test Scaffolding #9

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

PHPUnit Test Scaffolding #9

wants to merge 17 commits into from

Conversation

crodriguezbrito
Copy link

@crodriguezbrito crodriguezbrito commented Mar 20, 2025

Proposed changes

This PR will add a PHPUnit scaffolding to allow modules to easily scaffold PHP Unit. See #PRESS10-97

The scaffolding wil add or update the following:

Set up .wp-env
Install WP via Composer
Install WP Browser and config files

Also I included a test to verify that the WooCommerce page list matches what we expect #PRESS0-2072

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Video

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@crodriguezbrito crodriguezbrito marked this pull request as draft March 21, 2025 13:56
@crodriguezbrito crodriguezbrito changed the title Add wp-browser to test the module PHPUnit Test Scaffolding Mar 24, 2025
@crodriguezbrito crodriguezbrito marked this pull request as ready for review March 24, 2025 13:05
circlecube
circlecube previously approved these changes Mar 27, 2025
@circlecube
Copy link
Member

Approved, excited to see some php unit testing coming to modules!

circlecube
circlecube previously approved these changes Apr 18, 2025
wpscholar
wpscholar previously approved these changes Apr 21, 2025
@crodriguezbrito crodriguezbrito dismissed stale reviews from wpscholar and circlecube via edcd574 April 23, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants