Changeset 37222
- Timestamp:
- 04/16/2016 07:21:49 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/option/networkOption.php
r35242 r37222 1 1 <?php 2 2 3 if ( is_multisite() ) :4 5 3 /** 6 * Tests specific to network options in Multisite. 4 * Tests specific to managing network options in multisite. 5 * 6 * Some tests will run in single site as the `_network_option()` functions 7 * are available and internally use `_option()` functions as fallbacks. 7 8 * 8 9 * @group option … … 12 13 class Tests_Option_NetworkOption extends WP_UnitTestCase { 13 14 function test_add_network_option_not_available_on_other_network() { 15 if ( ! is_multisite() ) { 16 $this->markTestSkipped( 'Test requires multisite' ); 17 } 18 14 19 $id = self::factory()->network->create(); 15 20 $option = rand_str(); … … 21 26 22 27 function test_add_network_option_available_on_same_network() { 28 if ( ! is_multisite() ) { 29 $this->markTestSkipped( 'Test requires multisite' ); 30 } 31 23 32 $id = self::factory()->network->create(); 24 33 $option = rand_str(); … … 30 39 31 40 function test_delete_network_option_on_only_one_network() { 41 if ( ! is_multisite() ) { 42 $this->markTestSkipped( 'Test requires multisite' ); 43 } 44 32 45 $id = self::factory()->network->create(); 33 46 $option = rand_str(); … … 84 97 } 85 98 } 86 87 endif;
Note: See TracChangeset
for help on using the changeset viewer.