From 9b6563f70f330531c0c5e3c891d603247d2c02d6 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sat, 22 Nov 2014 20:45:58 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/query/results.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/tests/phpunit/tests/query/results.php b/tests/phpunit/tests/query/results.php index bd0522971c..ca74642439 100644 --- a/tests/phpunit/tests/query/results.php +++ b/tests/phpunit/tests/query/results.php @@ -317,30 +317,6 @@ class Tests_Query_Results extends WP_UnitTestCase { $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 */