WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/22/2014 08:45:58 PM (6 years ago)
Author:
boonebgorges
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/results.php

    r30276 r30524  
    319319
    320320    /**
    321      * @ticket 18897
    322      */
    323     function test_query_offset_and_paged() {
    324         $posts = $this->q->query('paged=2&offset=3');
    325 
    326         $expected = array (
    327             0 => 'many-trackbacks',
    328             1 => 'one-trackback',
    329             2 => 'comment-test',
    330             3 => 'lorem-ipsum',
    331             4 => 'cat-c',
    332             5 => 'cat-b',
    333             6 => 'cat-a',
    334             7 => 'cats-a-and-c',
    335             8 => 'cats-b-and-c',
    336             9 => 'cats-a-and-b',
    337         );
    338 
    339         $this->assertCount( 10, $posts );
    340         $this->assertTrue( $this->q->is_paged() );
    341         $this->assertEquals( $expected, wp_list_pluck( $posts, 'post_name' ) );
    342     }
    343 
    344     /**
    345321     * @ticket 11056
    346322     */
Note: See TracChangeset for help on using the changeset viewer.