From 4379ec80d6cf462553266110876bd537633b4576 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 2 Jul 2014 19:56:50 +0000 Subject: [PATCH] This test in `post/revisions.php` is too misleading and doesn't work as expected since multiple queries can occur before the one that is intended for testing. See #28706. git-svn-id: https://develop.svn.wordpress.org/trunk@28962 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/option/transient.php | 1 - tests/phpunit/tests/post/revisions.php | 18 ------------------ 2 files changed, 19 deletions(-) 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 */