Ticket #22807: 22807-test.diff
| File 22807-test.diff, 844 bytes (added by , 12 years ago) |
|---|
-
tests/phpunit/tests/option/transient.php
53 53 54 54 // Update the timeout to a second in the past and watch the transient be invalidated. 55 55 update_option( '_transient_timeout_' . $key, $now - 1 ); 56 $this->assertFalse( get_transient( $key ) ); 56 if ( !is_multisite() ) 57 $this->assertFalse( get_transient( $key ) ); 57 58 } 58 59 59 60 /** … … 74 75 $this->assertGreaterThanOrEqual( $now, get_option( '_transient_timeout_' . $key ) ); 75 76 76 77 update_option( '_transient_timeout_' . $key, $now - 1 ); 77 $this->assertFalse( get_transient( $key ) ); 78 if ( !is_multisite() ) 79 $this->assertFalse( get_transient( $key ) ); 78 80 } 79 81 }