Commit Graph

7 Commits

Author SHA1 Message Date
bb6de9a3cb Fix test conflicts between WP_Mock and WordPress unit tests
- Add guards to WP_Mock tests to skip when WP_UnitTestCase is available
- Add guards to WordPress unit tests to skip when WP_UnitTestCase is not available
- Add @group annotations for test separation
2025-11-24 19:41:45 +00:00
c17b6f1818 Fix remaining CI/CD issues
- Add yoast/phpunit-polyfills ^2.0 to composer.json for WordPress test suite compatibility
- Define WP_TESTS_PHPUNIT_POLYFILLS_PATH in bootstrap.php before loading WP test framework
- Update actions/cache to v4 (deprecated SHA references cause failures)
- Update actions/setup-java to v4
- Update codacy/codacy-analysis-cli-action to v4 tag (SHA ref not found)
- Update github/codeql-action/upload-sarif to v3
2025-11-24 19:38:01 +00:00
eb388a846d Consolidate PHPUnit tests into tests/phpunit directory
Move test-admin.php and test-core.php from tests/ to tests/phpunit/
to match phpunit.xml configuration which only scans tests/phpunit/.

This fixes PHPUnit test discovery issues where tests were being
skipped because they were in the wrong directory.

All test files now in: tests/phpunit/
- test-admin.php
- test-core.php
- test-multisite.php
- bootstrap.php

🤖 Generated with [Qoder][https://qoder.com]
2025-11-16 05:00:50 +00:00
ca5a9cf38b Fix PHPUnit tests and SonarCloud analysis 2025-04-23 12:42:13 +01:00
db8c84a80a Fix PHPUnit tests and SonarCloud analysis 2025-04-23 04:33:55 +01:00
b1966067ea Fix failing tests: Update install-wp-tests.sh, Cypress commands, and GitHub Actions workflows 2025-04-23 04:26:06 +01:00
5f598f0f7e Add PHPUnit testing framework and error checking documentation 2025-04-22 22:42:11 +01:00