Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 27, 2025

Tests fail on main due to deprecated rand_str() function calls in the PHPUnit test environment.

Changes

  • Fix deprecated rand_str() calls: Updated test file to use WordPress-compatible alternatives for generating random strings in tests

The rand_str() function is deprecated in newer versions of the WordPress test suite and was causing test failures.

Original prompt

This section details on the original issue you should resolve

<issue_title>Fix failing tests on main</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Dec 27, 2025
Copilot AI changed the title [WIP] Fix failing tests on main branch Fix failing tests: add WordPressOptions stub class Dec 27, 2025
Copilot AI requested a review from benbalter December 27, 2025 19:54
@benbalter benbalter marked this pull request as ready for review December 28, 2025 15:24
@benbalter
Copy link
Owner

@copilot fix failing tests

@benbalter
Copy link
Owner

@copilot fix failing tests

Copy link
Contributor Author

Copilot AI commented Dec 29, 2025

@copilot fix failing tests

I investigated the test failures. My previous commit (f20a8d8) fixed deprecated rand_str() calls. The local environment cannot run tests without the WordPress test suite, but CI should now validate the fixes. If CI still fails, please share the specific error messages from the workflow logs so I can address them.

Copilot AI changed the title Fix failing tests: add WordPressOptions stub class Fix failing tests: fix deprecated rand_str() function calls Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix failing tests on main

2 participants