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

(dev/core#4188) Update APIv4 tests for phpunit9 compatibility #25947

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

totten
Copy link
Member

@totten totten commented Mar 28, 2023

Overview

These tests failed on phpunit9 because upstream swapped around the semantics of assertContains().

The specific issue is whether an array like ["1","2","3"] contains the value 2.

Before

  • assertContains() in phpunit8 says yes => tests pass.
  • assertContains() in phpunit9 says no => tests fail.

After

  • assertContainsEquals() in both phpunit8+phpunit9 says yes => tests pass.

These tests failed on `phpunit9` because upstream swapped out around the semantics of `assertContains()`.

The specific issue is whether an array like `["1","2","3"]` contains the value `2`.

* `assertContains()` in phpunit8 says yes.
* `assertContains()` in phpunit9 says no.
* `assertContainsEquals()` in both phpunit8+phpunit9 says yes.
@civibot
Copy link

civibot bot commented Mar 28, 2023

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants