diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2020-09-06 02:51:45 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2020-09-06 02:51:45 +0000 |
commit | 6f07ff569bf012e1f57018437add3b959a2b2235 (patch) | |
tree | 1527d384cef9efcffb677b381ca40bc62a4351b0 /tests/phpunit/includes/phpunit7 | |
parent | d803f6bf8228625a384dbb694337c7d7957f1ec3 (diff) | |
download | wordpress-6f07ff569bf012e1f57018437add3b959a2b2235.tar.gz wordpress-6f07ff569bf012e1f57018437add3b959a2b2235.zip |
Tests: Correct assertion in `Tests_Cache::test_miss()`.
On failure to retrieve contents, `WP_Object_Cache::get()` returns `false`, not `null`.
The test only passed accidentally due to `assertEquals()` not performing a strict type check.
Props johnbillion.
See #38266.
git-svn-id: https://develop.svn.wordpress.org/trunk@48948 602fd350-edb4-49c9-b593-d223f7449a82
Diffstat (limited to 'tests/phpunit/includes/phpunit7')
0 files changed, 0 insertions, 0 deletions