Skip to content

Fix tests after change in WordPress trunk#195

Merged
swissspidy merged 2 commits intomainfrom
fix-tests
May 7, 2024
Merged

Fix tests after change in WordPress trunk#195
swissspidy merged 2 commits intomainfrom
fix-tests

Conversation

@swissspidy
Copy link
Copy Markdown
Member

@swissspidy swissspidy commented May 7, 2024

Improve the test case after https://core.trac.wordpress.org/changeset/58105 to address failures.

Simply removes the bits with the autoload value from the assertions.

The alternative would be to use a different value depending on the WP version but that seems overkill.

@swissspidy swissspidy added the scope:testing Related to testing label May 7, 2024
@swissspidy swissspidy added this to the 2.1.6 milestone May 7, 2024
@swissspidy swissspidy requested a review from a team as a code owner May 7, 2024 08:07
@thelovekesh
Copy link
Copy Markdown
Member

Are these failing tests related to these changes?

@swissspidy
Copy link
Copy Markdown
Member Author

Ah yes, looks like I need to fix the following assertions as well.

@swissspidy
Copy link
Copy Markdown
Member Author

@thelovekesh should be fixed now

@thelovekesh
Copy link
Copy Markdown
Member

It seems like the requests library is not PHP 8.4 compatible. We can probably ignore those failing tests for now.

@swissspidy
Copy link
Copy Markdown
Member Author

@thelovekesh Please see wp-cli/wp-cli#5946

PHP 8.4 is in alpha anyway and all 8.4 tests are marked as allowed to fail.

@swissspidy swissspidy merged commit d908c57 into main May 7, 2024
@swissspidy swissspidy deleted the fix-tests branch May 7, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants