Changeset 40543 for trunk/tests/phpunit/tests/option/networkOption.php
- Timestamp:
- 04/23/2017 09:57:31 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/networkOption.php
r40520 r40543 17 17 */ 18 18 function test_add_network_option_not_available_on_other_network() { 19 if ( ! is_multisite() ) { 20 $this->markTestSkipped( 'Test requires multisite' ); 21 } 19 $this->skipWithoutMultisite(); 22 20 23 21 $id = self::factory()->network->create(); … … 33 31 */ 34 32 function test_add_network_option_available_on_same_network() { 35 if ( ! is_multisite() ) { 36 $this->markTestSkipped( 'Test requires multisite' ); 37 } 33 $this->skipWithoutMultisite(); 38 34 39 35 $id = self::factory()->network->create(); … … 49 45 */ 50 46 function test_delete_network_option_on_only_one_network() { 51 if ( ! is_multisite() ) { 52 $this->markTestSkipped( 'Test requires multisite' ); 53 } 47 $this->skipWithoutMultisite(); 54 48 55 49 $id = self::factory()->network->create(); … … 68 62 */ 69 63 public function test_add_network_option_is_not_stored_as_autoload_option() { 64 $this->skipWithMultisite(); 65 70 66 $key = __FUNCTION__; 71 72 if ( is_multisite() ) {73 $this->markTestSkipped( 'Does not apply when used in multisite.' );74 }75 67 76 68 add_network_option( null, $key, 'Not an autoload option' ); … … 86 78 */ 87 79 public function test_update_network_option_is_not_stored_as_autoload_option() { 80 $this->skipWithMultisite(); 81 88 82 $key = __FUNCTION__; 89 90 if ( is_multisite() ) {91 $this->markTestSkipped( 'Does not apply when used in multisite.' );92 }93 83 94 84 update_network_option( null, $key, 'Not an autoload option' );
Note: See TracChangeset
for help on using the changeset viewer.