Skip to content

Update how we run PHPUnit#192

Merged
dkotter merged 11 commits intodevelopfrom
update/phpunit-workflow
Feb 25, 2026
Merged

Update how we run PHPUnit#192
dkotter merged 11 commits intodevelopfrom
update/phpunit-workflow

Conversation

@dkotter
Copy link
Collaborator

@dkotter dkotter commented Feb 18, 2026

Description of the Change

Our PHPUnit workflow has started to fail and in investigating that, seems GitHub has updated their default version of Docker that is installed in their runners and that is conflicting with the tool we use to run our tests. That tool hasn't been updated since June 2024 so I'm not confident they'll push out a fix.

Also, there's a better way to run PHPUnit tests now that didn't exist/we didn't know about when we set this up (using wp-env) so this is a good opportunity to clean up that setup.

The following updates are made:

  • We update our GitHub Action workflow to use the wp-env environment to run our PHPUnit tests (and run those on a wider matrix)
  • Update our various config and bootstrap files as needed
  • Migrate off of WP Mock and just use the WordPress testing suite

Note most of this was copied from the approach we took on ClassifAI.

How to test the Change

Ensure the PHPUnit GitHub Action runs and passes on this PR

Changelog Entry

Developer - Update our PHPUnit workflow

Credits

Props @dkotter

Checklist:

@dkotter dkotter added this to the 1.2.0 milestone Feb 18, 2026
@dkotter dkotter self-assigned this Feb 18, 2026
@dkotter dkotter requested review from peterwilsoncc and removed request for davidrgreen and jeffpaul February 18, 2026 20:47
@jeffpaul jeffpaul moved this to Code Review in Open Source Practice Feb 18, 2026
Copy link
Contributor

@peterwilsoncc peterwilsoncc left a comment

Choose a reason for hiding this comment

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

This looks good to me, actions are passing.

Due to the rename of the test this will need to be merged by an admin and the repo settings updated to require the tests under their new name.

@github-project-automation github-project-automation bot moved this from Code Review to QA Testing in Open Source Practice Feb 24, 2026
@dkotter dkotter merged commit 125918c into develop Feb 25, 2026
19 checks passed
@dkotter dkotter deleted the update/phpunit-workflow branch February 25, 2026 15:17
@github-project-automation github-project-automation bot moved this from QA Testing to Done in Open Source Practice Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants