Changeset 53865 for trunk/tests/phpunit/tests/option/updateOption.php
- Timestamp:
- 08/08/2022 11:33:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/updateOption.php
r48937 r53865 7 7 /** 8 8 * @ticket 31047 9 * 10 * @covers ::add_filter 11 * @covers ::update_option 12 * @covers ::remove_filter 9 13 */ 10 14 public function test_should_respect_default_option_filter_when_option_does_not_yet_exist_in_database() { … … 19 23 /** 20 24 * @ticket 26394 25 * 26 * @covers ::update_option 27 * @covers ::wp_load_alloptions 28 * @covers ::get_option 21 29 */ 22 30 public function test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_missing() { … … 39 47 /** 40 48 * @ticket 26394 49 * 50 * @covers ::update_option 51 * @covers ::wp_load_alloptions 52 * @covers ::get_option 41 53 */ 42 54 public function test_should_set_autoload_yes_for_nonexistent_option_when_autoload_param_is_yes() { … … 59 71 /** 60 72 * @ticket 26394 73 * 74 * @covers ::update_option 75 * @covers ::wp_load_alloptions 76 * @covers ::get_option 61 77 */ 62 78 public function test_should_set_autoload_no_for_nonexistent_option_when_autoload_param_is_no() { … … 80 96 /** 81 97 * @ticket 26394 98 * 99 * @covers ::update_option 100 * @covers ::wp_load_alloptions 101 * @covers ::get_option 82 102 */ 83 103 public function test_should_set_autoload_no_for_nonexistent_option_when_autoload_param_is_false() { … … 101 121 /** 102 122 * @ticket 26394 123 * 124 * @covers ::update_option 125 * @covers ::wp_load_alloptions 126 * @covers ::get_option 103 127 */ 104 128 public function test_autoload_should_be_updated_for_existing_option_when_value_is_changed() { … … 122 146 /** 123 147 * @ticket 26394 148 * 149 * @covers ::update_option 150 * @covers ::wp_load_alloptions 151 * @covers ::get_option 124 152 */ 125 153 public function test_autoload_should_not_be_updated_for_existing_option_when_value_is_unchanged() { … … 144 172 /** 145 173 * @ticket 26394 174 * 175 * @covers ::update_option 176 * @covers ::wp_load_alloptions 177 * @covers ::get_option 146 178 */ 147 179 public function test_autoload_should_not_be_updated_for_existing_option_when_value_is_changed_but_no_value_of_autoload_is_provided() { … … 161 193 $value = get_option( 'foo' ); 162 194 163 // 'foo' should still be autoload=yes, so we should see no additional queri os.195 // 'foo' should still be autoload=yes, so we should see no additional queries. 164 196 $this->assertSame( $before, $wpdb->num_queries ); 165 197 $this->assertSame( $value, 'bar2' ); … … 168 200 /** 169 201 * @ticket 38903 202 * 203 * @covers ::add_option 204 * @covers ::get_num_queries 205 * @covers ::update_option 170 206 */ 171 207 public function test_update_option_array_with_object() {
Note: See TracChangeset
for help on using the changeset viewer.