diff --git a/tests/phpunit/tests/option/transient.php b/tests/phpunit/tests/option/transient.php index a8fe07fe6e..57a4a87682 100644 --- a/tests/phpunit/tests/option/transient.php +++ b/tests/phpunit/tests/option/transient.php @@ -40,7 +40,6 @@ class Tests_Option_Transient extends WP_UnitTestCase { function test_transient_data_with_timeout() { $key = rand_str(); $value = rand_str(); - $value2 = rand_str(); $this->assertFalse( get_option( '_transient_timeout_' . $key ) ); $now = time(); diff --git a/tests/phpunit/tests/post/revisions.php b/tests/phpunit/tests/post/revisions.php index 4011b659ad..aa3819abc1 100644 --- a/tests/phpunit/tests/post/revisions.php +++ b/tests/phpunit/tests/post/revisions.php @@ -339,24 +339,6 @@ class Tests_Post_Revisions extends WP_UnitTestCase { } } - /** - * @ticket 26042 - */ - function test_wp_get_posts_revisions_sql() { - $post = get_default_post_to_edit( 'post', true ); - - add_filter( 'query', array( $this, '_filter_query' ) ); - - wp_get_post_revisions( $post->ID ); - } - - function _filter_query( $sql ) { - remove_filter( 'query', array( $this, '_filter_query' ) ); - global $wpdb; - $this->assertContains( "ORDER BY $wpdb->posts.post_date DESC, $wpdb->posts.ID DESC", $sql ); - return $sql; - } - /** * @ticket 26042 */