Skip to content

Comments

Update how we run PHPUnit#192

Open
dkotter wants to merge 10 commits intodevelopfrom
update/phpunit-workflow
Open

Update how we run PHPUnit#192
dkotter wants to merge 10 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Code Review

Development

Successfully merging this pull request may close these issues.

1 participant