diff --git a/tests/phpunit/tests/option/transient.php b/tests/phpunit/tests/option/transient.php index c8f0b26dea..3dbd79d6d6 100644 --- a/tests/phpunit/tests/option/transient.php +++ b/tests/phpunit/tests/option/transient.php @@ -42,6 +42,10 @@ class Tests_Option_Transient extends WP_UnitTestCase { $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' ); } + if ( wp_using_ext_object_cache() ) { + $this->markTestSkipped( 'Not testable with an external object cache.' ); + } + $key = rand_str(); $value = rand_str(); @@ -67,6 +71,10 @@ class Tests_Option_Transient extends WP_UnitTestCase { $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' ); } + if ( wp_using_ext_object_cache() ) { + $this->markTestSkipped( 'Not testable with an external object cache.' ); + } + $key = rand_str(); $value = rand_str(); $value2 = rand_str(); @@ -90,6 +98,10 @@ class Tests_Option_Transient extends WP_UnitTestCase { * @ticket 30380 */ function test_nonexistent_key_dont_delete_if_false() { + if ( wp_using_ext_object_cache() ) { + $this->markTestSkipped( 'Not testable with an external object cache.' ); + } + // Create a bogus a transient $key = 'test_transient'; set_transient( $key, 'test', 60 * 10 ); @@ -122,6 +134,10 @@ class Tests_Option_Transient extends WP_UnitTestCase { $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' ); } + if ( wp_using_ext_object_cache() ) { + $this->markTestSkipped( 'Not testable with an external object cache.' ); + } + // Create a transient $key = 'test_transient'; set_transient( $key, 'test', 60 * 10 );