Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| // Give access to tests_add_filter() function. | ||
| require_once "{$_tests_dir}/includes/functions.php"; | ||
| require_once $_tests_dir . 'includes/functions.php'; |
There was a problem hiding this comment.
Require WordPress test helper using path without separator
After switching to WPIntegration\get_path_to_wp_test_dir() the include now concatenates the tests directory and includes/functions.php without adding a /. get_path_to_wp_test_dir() returns whatever was provided via WP_TESTS_DIR/WP_DEVELOP_DIR; when those variables omit a trailing slash (common in the official setup instructions) the resulting path becomes …wordpress-tests-libincludes/functions.php and the bootstrap immediately fails with No such file or directory. Append an explicit slash (e.g. $_tests_dir . '/includes/functions.php') or normalize the path before including so tests can run regardless of how the environment variable is formatted.
Useful? React with 👍 / 👎.
Summary
testscript at the existingphpunitComposer script so the bundled executable is usedTesting
https://chatgpt.com/codex/tasks/task_e_68edfc590eac832291c255438b26d755