diff --git a/tests/phpunit/tests/admin/includesListTable.php b/tests/phpunit/tests/admin/includesListTable.php index cf40457cdf..2fa8460b17 100644 --- a/tests/phpunit/tests/admin/includesListTable.php +++ b/tests/phpunit/tests/admin/includesListTable.php @@ -185,6 +185,10 @@ class Tests_Admin_includesListTable extends WP_UnitTestCase { $this->table->display_rows( $pages->posts ); $output = ob_get_clean(); + // Clean up. + unset( $_REQUEST['paged'] ); + unset( $GLOBALS['per_page'] ); + preg_match_all( '|]*>|', $output, $matches ); $this->assertCount( count( $expected_ids ), array_keys( $matches[0] ) );