- Replace tabs with spaces in test files
- Use require_once instead of require
- Add @return void to docblocks
- Define constants for repeated string literals
- Use WordPress spacing conventions
- Add use statements for cleaner class references
- 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
- 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
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]