Changeset 52010 for trunk/tests/phpunit/tests/option/multisite.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/multisite.php
r51869 r52010 12 12 class Tests_Multisite_Option extends WP_UnitTestCase { 13 13 14 function test_from_same_site() {14 public function test_from_same_site() { 15 15 $key = __FUNCTION__ . '_1'; 16 16 $key2 = __FUNCTION__ . '_2'; … … 49 49 } 50 50 51 function test_from_same_site_with_null_blog_id() {51 public function test_from_same_site_with_null_blog_id() { 52 52 $key = __FUNCTION__ . '_1'; 53 53 $key2 = __FUNCTION__ . '_2'; … … 85 85 } 86 86 87 function test_with_another_site() {87 public function test_with_another_site() { 88 88 $user_id = self::factory()->user->create(); 89 89 $this->assertIsInt( $user_id ); … … 135 135 * @group multisite 136 136 */ 137 function test_site_notoptions() {137 public function test_site_notoptions() { 138 138 $network_id = get_current_network_id(); 139 139 $notoptions_key = "{$network_id}:notoptions"; … … 152 152 } 153 153 154 function test_users_can_register_signup_filter() {154 public function test_users_can_register_signup_filter() { 155 155 156 156 $registration = get_site_option( 'registration' ); … … 170 170 * @dataProvider data_illegal_names 171 171 */ 172 function test_sanitize_network_option_illegal_names( $option_value, $sanitized_option_value ) {172 public function test_sanitize_network_option_illegal_names( $option_value, $sanitized_option_value ) { 173 173 update_site_option( 'illegal_names', $option_value ); 174 174 $this->assertSame( $sanitized_option_value, get_site_option( 'illegal_names' ) ); 175 175 } 176 176 177 function data_illegal_names() {177 public function data_illegal_names() { 178 178 return array( 179 179 array( array( '', 'Woo', '' ), array( 'Woo' ) ), … … 189 189 * @param $sanitized_option_value 190 190 */ 191 function test_sanitize_network_option_limited_email_domains( $option_value, $sanitized_option_value ) {191 public function test_sanitize_network_option_limited_email_domains( $option_value, $sanitized_option_value ) { 192 192 update_site_option( 'limited_email_domains', $option_value ); 193 193 $this->assertSame( $sanitized_option_value, get_site_option( 'limited_email_domains' ) ); … … 200 200 * @param $sanitized_option_value 201 201 */ 202 function test_sanitize_network_option_banned_email_domains( $option_value, $sanitized_option_value ) {202 public function test_sanitize_network_option_banned_email_domains( $option_value, $sanitized_option_value ) { 203 203 update_site_option( 'banned_email_domains', $option_value ); 204 204 $this->assertSame( $sanitized_option_value, get_site_option( 'banned_email_domains' ) ); 205 205 } 206 206 207 function data_email_domains() {207 public function data_email_domains() { 208 208 return array( 209 209 array( array( 'woo', '', 'boo.com', 'foo.net.biz..' ), array( 'woo', 'boo.com' ) ),
Note: See TracChangeset
for help on using the changeset viewer.