Make WordPress Core

Ticket #42044: 42044.2.patch

File 42044.2.patch, 828 bytes (added by birgire, 7 years ago)
  • tests/phpunit/tests/admin/includesListTable.php

    diff --git tests/phpunit/tests/admin/includesListTable.php tests/phpunit/tests/admin/includesListTable.php
    index cf40457..e2b3a2b 100644
    class Tests_Admin_includesListTable extends WP_UnitTestCase { 
    185185                $this->table->display_rows( $pages->posts );
    186186                $output = ob_get_clean();
    187187
     188                // Clean up
     189                unset( $_REQUEST['paged'] );
     190                unset( $GLOBALS['per_page'] );
     191
    188192                preg_match_all( '|<tr[^>]*>|', $output, $matches );
    189193
    190194                $this->assertCount( count( $expected_ids ), array_keys( $matches[0] ) );
    class Tests_Admin_includesListTable extends WP_UnitTestCase { 
    192196                foreach ( $expected_ids as $id ) {
    193197                        $this->assertContains( sprintf( 'id="post-%d"', $id ), $output );
    194198                }
     199
    195200        }
    196201
    197202        /**