diff --git a/tests/test-object-cache.php b/tests/test-object-cache.php index 21261ce..8b2154b 100644 --- a/tests/test-object-cache.php +++ b/tests/test-object-cache.php @@ -891,6 +891,18 @@ public function test_found_gives_an_accurate_representation_of_whether_or_not_it $this->assertFalse( $found ); } + + public function test_found_wp_cache_get() { + $found = null; + + // Force to read from cache + wp_cache_get( 'foo', null, true, $found ); + $this->assertFalse( $found ); + + wp_cache_set( 'foo', false ); + wp_cache_get( 'foo', null, true, $found ); + $this->assertTrue( $found ); + } public function get_colorize_debug_line_data() { return array(