Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Unit tests for User feature are failing for WordPress 6.1 #3108

Closed
burhandodhy opened this issue Nov 3, 2022 · 0 comments · Fixed by #3109
Closed

BUG: Unit tests for User feature are failing for WordPress 6.1 #3108

burhandodhy opened this issue Nov 3, 2022 · 0 comments · Fixed by #3109
Assignees
Labels
bug Something isn't working
Milestone

Comments

@burhandodhy
Copy link
Contributor

Describe the bug

Unit tests for User feature are failing for WordPress 6.1

1) ElasticPressTest\TestUser::testBasicUserQuery
Object of class stdClass could not be converted to int

/tmp/wordpress/wp-includes/meta.php:1125
/tmp/wordpress/wp-includes/pluggable.php:128
/tmp/wordpress/wp-includes/class-wp-user-query.php:843
/tmp/wordpress/wp-includes/class-wp-user-query.php:79
/home/runner/work/ElasticPress/ElasticPress/tests/php/indexables/TestUser.php:275

2) ElasticPressTest\TestUser::testUserQueryNumber
Object of class stdClass could not be converted to int

/tmp/wordpress/wp-includes/meta.php:1125
/tmp/wordpress/wp-includes/pluggable.php:128
/tmp/wordpress/wp-includes/class-wp-user-query.php:843
/tmp/wordpress/wp-includes/class-wp-user-query.php:79
/home/runner/work/ElasticPress/ElasticPress/tests/php/indexables/TestUser.php:299

Steps to Reproduce

  1. Run Unit tests.

Expected behavior

All tests should pass.

@burhandodhy burhandodhy added the bug Something isn't working label Nov 3, 2022
@burhandodhy burhandodhy added this to the 4.4.0 milestone Nov 3, 2022
@burhandodhy burhandodhy self-assigned this Nov 3, 2022
@felipeelia felipeelia assigned felipeelia and unassigned burhandodhy Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants