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
This commit is contained in:
Scott Taylor 2014-07-02 19:56:50 +00:00
parent d38227dbae
commit 4379ec80d6
2 changed files with 0 additions and 19 deletions

View File

@ -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();

View File

@ -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
*/