Make WordPress Core

Ticket #22807: 22807-test.diff

File 22807-test.diff, 844 bytes (added by sandyr, 12 years ago)

22807 unit test to handle mu

  • tests/phpunit/tests/option/transient.php

     
    5353
    5454                // Update the timeout to a second in the past and watch the transient be invalidated.
    5555                update_option( '_transient_timeout_' . $key, $now - 1 );
    56                 $this->assertFalse( get_transient( $key ) );
     56                if ( !is_multisite() )
     57                        $this->assertFalse( get_transient( $key ) );
    5758        }
    5859
    5960        /**
     
    7475                $this->assertGreaterThanOrEqual( $now, get_option( '_transient_timeout_' . $key ) );
    7576
    7677                update_option( '_transient_timeout_' . $key, $now - 1 );
    77                 $this->assertFalse( get_transient( $key ) );
     78                if ( !is_multisite() )
     79                    $this->assertFalse( get_transient( $key ) );
    7880        }
    7981}