Make WordPress Core

Changeset 33702


Ignore:
Timestamp:
08/21/2015 08:32:42 PM (9 years ago)
Author:
ocean90
Message:

Tests: Skip some tests for the Transients API when an external object cache is in use.

test_transient_data_with_timeout(), test_transient_add_timeout(), test_nonexistent_key_dont_delete_if_false(), and test_nonexistent_key_old_timeout are testing option values which aren't available with an an external object cache like memcache.

see #31491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/option/transient.php

    r33125 r33702  
    4343        }
    4444
     45        if ( wp_using_ext_object_cache() ) {
     46            $this->markTestSkipped( 'Not testable with an external object cache.' );
     47        }
     48
    4549        $key = rand_str();
    4650        $value = rand_str();
     
    6872        }
    6973
     74        if ( wp_using_ext_object_cache() ) {
     75            $this->markTestSkipped( 'Not testable with an external object cache.' );
     76        }
     77
    7078        $key = rand_str();
    7179        $value = rand_str();
     
    9199     */
    92100    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
    93105        // Create a bogus a transient
    94106        $key = 'test_transient';
     
    121133        if ( is_multisite() ) {
    122134            $this->markTestSkipped( 'Not testable in MS: wpmu_create_blog() defines WP_INSTALLING.' );
     135        }
     136
     137        if ( wp_using_ext_object_cache() ) {
     138            $this->markTestSkipped( 'Not testable with an external object cache.' );
    123139        }
    124140
Note: See TracChangeset for help on using the changeset viewer.