Changeset 52010 for trunk/tests/phpunit/tests/option/wpLoadAllOptions.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/wpLoadAllOptions.php
r51568 r52010 8 8 protected $alloptions = null; 9 9 10 function tear_down() {10 public function tear_down() { 11 11 $this->alloptions = null; 12 12 parent::tear_down(); 13 13 } 14 14 15 function test_if_alloptions_is_cached() {15 public function test_if_alloptions_is_cached() { 16 16 $this->assertNotEmpty( wp_cache_get( 'alloptions', 'options' ) ); 17 17 } … … 20 20 * @depends test_if_alloptions_is_cached 21 21 */ 22 function test_if_cached_alloptions_is_deleted() {22 public function test_if_cached_alloptions_is_deleted() { 23 23 $this->assertTrue( wp_cache_delete( 'alloptions', 'options' ) ); 24 24 } … … 27 27 * @depends test_if_alloptions_is_cached 28 28 */ 29 function test_if_alloptions_are_retrieved_from_cache() {29 public function test_if_alloptions_are_retrieved_from_cache() { 30 30 global $wpdb; 31 31 $before = $wpdb->num_queries; … … 40 40 * @depends test_if_cached_alloptions_is_deleted 41 41 */ 42 function test_if_alloptions_are_retrieved_from_database() {42 public function test_if_alloptions_are_retrieved_from_database() { 43 43 global $wpdb; 44 44 … … 57 57 * @depends test_if_cached_alloptions_is_deleted 58 58 */ 59 function test_filter_pre_cache_alloptions_is_called() {59 public function test_filter_pre_cache_alloptions_is_called() { 60 60 $temp = wp_installing(); 61 61 … … 83 83 * @depends test_if_alloptions_is_cached 84 84 */ 85 function test_filter_pre_cache_alloptions_is_not_called() {85 public function test_filter_pre_cache_alloptions_is_not_called() { 86 86 $temp = wp_installing(); 87 87 … … 104 104 } 105 105 106 function return_pre_cache_filter( $alloptions ) {106 public function return_pre_cache_filter( $alloptions ) { 107 107 $this->alloptions = $alloptions; 108 108 return $this->alloptions;
Note: See TracChangeset
for help on using the changeset viewer.