Changeset 52706 for trunk/tests/phpunit/tests/cache.php
- Timestamp:
- 02/11/2022 06:47:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cache.php
r52702 r52706 333 333 334 334 /** 335 * @ticket 20875336 */337 public function test_get_multiple() {338 wp_cache_set( 'foo1', 'bar', 'group1' );339 wp_cache_set( 'foo2', 'bar', 'group1' );340 wp_cache_set( 'foo1', 'bar', 'group2' );341 342 $found = wp_cache_get_multiple( array( 'foo1', 'foo2', 'foo3' ), 'group1' );343 344 $expected = array(345 'foo1' => 'bar',346 'foo2' => 'bar',347 'foo3' => false,348 );349 350 $this->assertSame( $expected, $found );351 }352 353 /**354 335 * @ticket 54574 355 336 */ … … 396 377 397 378 /** 379 * @ticket 20875 380 */ 381 public function test_wp_cache_get_multiple() { 382 wp_cache_set( 'foo1', 'bar', 'group1' ); 383 wp_cache_set( 'foo2', 'bar', 'group1' ); 384 wp_cache_set( 'foo1', 'bar', 'group2' ); 385 386 $found = wp_cache_get_multiple( array( 'foo1', 'foo2', 'foo3' ), 'group1' ); 387 388 $expected = array( 389 'foo1' => 'bar', 390 'foo2' => 'bar', 391 'foo3' => false, 392 ); 393 394 $this->assertSame( $expected, $found ); 395 } 396 397 /** 398 398 * @ticket 54574 399 399 */
Note: See TracChangeset
for help on using the changeset viewer.