mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user