Remove failing test related to the 'offset' param of WP_Query
.
This test has been added as a patch to #18897. Props MikeHansenMe. See #30284. git-svn-id: https://develop.svn.wordpress.org/trunk@30524 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
83a9ac46fe
commit
9b6563f70f
@ -317,30 +317,6 @@ class Tests_Query_Results extends WP_UnitTestCase {
|
|||||||
$this->assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) );
|
$this->assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @ticket 18897
|
|
||||||
*/
|
|
||||||
function test_query_offset_and_paged() {
|
|
||||||
$posts = $this->q->query('paged=2&offset=3');
|
|
||||||
|
|
||||||
$expected = array (
|
|
||||||
0 => 'many-trackbacks',
|
|
||||||
1 => 'one-trackback',
|
|
||||||
2 => 'comment-test',
|
|
||||||
3 => 'lorem-ipsum',
|
|
||||||
4 => 'cat-c',
|
|
||||||
5 => 'cat-b',
|
|
||||||
6 => 'cat-a',
|
|
||||||
7 => 'cats-a-and-c',
|
|
||||||
8 => 'cats-b-and-c',
|
|
||||||
9 => 'cats-a-and-b',
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->assertCount( 10, $posts );
|
|
||||||
$this->assertTrue( $this->q->is_paged() );
|
|
||||||
$this->assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ticket 11056
|
* @ticket 11056
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user