Ticket #31491: 31491-skip-all-transient-as-options-tests.patch
File 31491-skip-all-transient-as-options-tests.patch, 2.4 KB (added by , 10 years ago) |
---|
-
tests/phpunit/tests/option/siteTransient.php
5 5 */ 6 6 class Tests_Option_SiteTransient extends WP_UnitTestCase { 7 7 8 public function setUp() { 9 parent::setUp(); 10 11 if ( wp_using_ext_object_cache() ) { 12 $this->markTestSkipped( 'Not testable with an external object cache.' ); 13 } 14 } 15 8 16 function test_the_basics() { 9 17 $key = rand_str(); 10 18 $value = rand_str(); -
tests/phpunit/tests/option/transient.php
5 5 */ 6 6 class Tests_Option_Transient extends WP_UnitTestCase { 7 7 8 public function setUp() { 9 parent::setUp(); 10 11 if ( wp_using_ext_object_cache() ) { 12 $this->markTestSkipped( 'Not testable with an external object cache.' ); 13 } 14 } 15 8 16 function test_the_basics() { 9 17 $key = rand_str(); 10 18 $value = rand_str(); … … 42 50 $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' ); 43 51 } 44 52 45 if ( wp_using_ext_object_cache() ) {46 $this->markTestSkipped( 'Not testable with an external object cache.' );47 }48 49 53 $key = rand_str(); 50 54 $value = rand_str(); 51 55 … … 71 75 $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' ); 72 76 } 73 77 74 if ( wp_using_ext_object_cache() ) {75 $this->markTestSkipped( 'Not testable with an external object cache.' );76 }77 78 78 $key = rand_str(); 79 79 $value = rand_str(); 80 80 $value2 = rand_str(); … … 98 98 * @ticket 30380 99 99 */ 100 100 function test_nonexistent_key_dont_delete_if_false() { 101 if ( wp_using_ext_object_cache() ) {102 $this->markTestSkipped( 'Not testable with an external object cache.' );103 }104 105 101 // Create a bogus a transient 106 102 $key = 'test_transient'; 107 103 set_transient( $key, 'test', 60 * 10 ); … … 134 130 $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' ); 135 131 } 136 132 137 if ( wp_using_ext_object_cache() ) {138 $this->markTestSkipped( 'Not testable with an external object cache.' );139 }140 141 133 // Create a transient 142 134 $key = 'test_transient'; 143 135 set_transient( $key, 'test', 60 * 10 );