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
This commit is contained in:
Sergey Biryukov 2020-09-06 02:51:45 +00:00
parent d803f6bf82
commit 6f07ff569b

View File

@ -27,7 +27,7 @@ class Tests_Cache extends WP_UnitTestCase {
}
function test_miss() {
$this->assertEquals( null, $this->cache->get( 'test_miss' ) );
$this->assertFalse( $this->cache->get( 'test_miss' ) );
}
function test_add_get() {