- Timestamp:
- 10/30/2023 11:21:03 PM (14 months ago)
- Location:
- branches/6.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.4
-
branches/6.4/tests/phpunit/tests/option/wpPrimeOptionCachesByGroup.php
r57016 r57030 48 48 wp_prime_option_caches_by_group( 'group1' ); 49 49 50 // Check that options are now in the cache. 51 $this->assertSame( get_option( 'option1' ), wp_cache_get( 'option1', 'options' ), 'option1\'s cache was not primed.' ); 52 $this->assertSame( get_option( 'option2' ), wp_cache_get( 'option2', 'options' ), 'option2\'s cache was not primed.' ); 50 /* 51 * Check that options are now in the cache. 52 * 53 * Repeat the string here rather than using get_option as get_option 54 * will prime the cache before the call to wp_cache_get if the option 55 * is not in the cache. Thus causing the tests to pass when they should 56 * fail. 57 */ 58 $this->assertSame( 'value_option1', wp_cache_get( 'option1', 'options' ), 'option1\'s cache was not primed.' ); 59 $this->assertSame( 'value_option2', wp_cache_get( 'option2', 'options' ), 'option2\'s cache was not primed.' ); 53 60 54 61 // Make sure option3 is still not in cache.
Note: See TracChangeset
for help on using the changeset viewer.