Changeset 47938 for trunk/tests/phpunit/tests/cache.php
- Timestamp:
- 06/09/2020 07:45:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cache.php
r47122 r47938 316 316 $this->assertFalse( wp_cache_get( $fake_key ) ); 317 317 } 318 319 /** 320 * @ticket 20875 321 */ 322 public function test_get_multiple() { 323 wp_cache_set( 'foo1', 'bar', 'group1' ); 324 wp_cache_set( 'foo2', 'bar', 'group1' ); 325 wp_cache_set( 'foo1', 'bar', 'group2' ); 326 327 $found = wp_cache_get_multiple( array( 'foo1', 'foo2', 'foo3', ), 'group1' ); 328 329 $expected = array( 330 'foo1' => 'bar', 331 'foo2' => 'bar', 332 'foo3' => false, 333 ); 334 335 $this->assertSame( $expected, $found ); 336 } 318 337 }
Note: See TracChangeset
for help on using the changeset viewer.