Changeset 53865 for trunk/tests/phpunit/tests/option/multisite.php
- Timestamp:
- 08/08/2022 11:33:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/multisite.php
r53494 r53865 12 12 class Tests_Option_Multisite extends WP_UnitTestCase { 13 13 14 /** 15 * @covers ::get_blog_option 16 * @covers ::get_option 17 * @covers ::add_blog_option 18 * @covers ::update_blog_option 19 * @covers ::delete_blog_option 20 */ 14 21 public function test_from_same_site() { 15 22 $key = __FUNCTION__ . '_1'; … … 49 56 } 50 57 58 /** 59 * @covers ::get_blog_option 60 * @covers ::get_option 61 * @covers ::add_blog_option 62 * @covers ::update_blog_option 63 * @covers ::delete_blog_option 64 */ 51 65 public function test_from_same_site_with_null_blog_id() { 52 66 $key = __FUNCTION__ . '_1'; … … 85 99 } 86 100 101 /** 102 * @covers ::get_blog_option 103 * @covers ::get_option 104 * @covers ::add_blog_option 105 * @covers ::update_blog_option 106 * @covers ::delete_blog_option 107 */ 87 108 public function test_with_another_site() { 88 109 $user_id = self::factory()->user->create(); … … 134 155 /** 135 156 * @group multisite 157 * 158 * @covers ::get_site_option 136 159 */ 137 160 public function test_site_notoptions() { … … 152 175 } 153 176 177 /** 178 * @covers ::users_can_register_signup_filter 179 * @covers ::get_site_option 180 */ 154 181 public function test_users_can_register_signup_filter() { 155 182 156 $registration =get_site_option( 'registration' );183 get_site_option( 'registration' ); 157 184 $this->assertFalse( users_can_register_signup_filter() ); 158 185 … … 169 196 /** 170 197 * @dataProvider data_illegal_names 198 * 199 * @covers ::update_site_option 200 * @covers ::get_site_option 171 201 */ 172 202 public function test_sanitize_network_option_illegal_names( $option_value, $sanitized_option_value ) { … … 188 218 * @param $option_value 189 219 * @param $sanitized_option_value 220 * 221 * @covers ::update_site_option 222 * @covers ::get_site_option 190 223 */ 191 224 public function test_sanitize_network_option_limited_email_domains( $option_value, $sanitized_option_value ) { … … 199 232 * @param $option_value 200 233 * @param $sanitized_option_value 234 * 235 * @covers ::update_site_option 236 * @covers ::get_site_option 201 237 */ 202 238 public function test_sanitize_network_option_banned_email_domains( $option_value, $sanitized_option_value ) {
Note: See TracChangeset
for help on using the changeset viewer.