Skip to content

Conversation

@badasswp
Copy link
Owner

This PR resolves the issue.

Description / Background Context

At the moment, we constantly need to mock popular WP functions which makes our testing efforts a bit tedious. We need to introduce the WPMockTestCase custom library which abstracts much of the heavy-lifting for a lot of our mocks.

This PR refactors our tests to use this library.

Testing Instructions

  • Pull PR to local.
  • Run composer run test to run unit tests.
  • Observe that all tests still pass correctly as before.

@badasswp badasswp self-assigned this Oct 10, 2025
@badasswp badasswp added chore Task to be done test Unit/Integration tests labels Oct 10, 2025
@badasswp badasswp linked an issue Oct 10, 2025 that may be closed by this pull request
@badasswp badasswp merged commit 9c4d9e2 into release-1.8.0 Oct 10, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Task to be done test Unit/Integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor TestCase to use WPMockTestCase

2 participants