diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2021-08-07 10:51:59 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2021-08-07 10:51:59 +0000 |
commit | 60dcae95ea9cfd168571cb06dad70fa230e68464 (patch) | |
tree | 960e92029d4f58f1b851bb7a667f4fd93f559b2c /tests/phpunit/includes/phpunit7 | |
parent | fcd4aa470069f6322b8e6cb7c90c9c71f1def2a9 (diff) | |
download | wordpress-60dcae95ea9cfd168571cb06dad70fa230e68464.tar.gz wordpress-60dcae95ea9cfd168571cb06dad70fa230e68464.zip |
Tests: Fix tests failing due to `assertContains()` using strict checking.
Since PHPUnit 8.0.2, the `assertContains()` method, when checking whether a value exists in an array, will do a strict type comparison of the values.
This caused a couple of tests to fail. Using the correct data type in the test fixes that.
References:
* https://github.com/sebastianbergmann/phpunit/blob/8.0.6/ChangeLog-8.0.md#802---2019-02-07
* https://github.com/sebastianbergmann/phpunit/issues/3511
* https://github.com/sebastianbergmann/phpunit/commit/6205f335954d00fa01992fe324a7eefbc954449e
Follow-up to [51559-51570].
Props jrf.
See #46149.
git-svn-id: https://develop.svn.wordpress.org/trunk@51571 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/phpunit7')
0 files changed, 0 insertions, 0 deletions