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 { |
| 185 | 185 | $this->table->display_rows( $pages->posts ); |
| 186 | 186 | $output = ob_get_clean(); |
| 187 | 187 | |
| | 188 | // Clean up |
| | 189 | unset( $_REQUEST['paged'] ); |
| | 190 | unset( $GLOBALS['per_page'] ); |
| | 191 | |
| 188 | 192 | preg_match_all( '|<tr[^>]*>|', $output, $matches ); |
| 189 | 193 | |
| 190 | 194 | $this->assertCount( count( $expected_ids ), array_keys( $matches[0] ) ); |
| … |
… |
class Tests_Admin_includesListTable extends WP_UnitTestCase { |
| 192 | 196 | foreach ( $expected_ids as $id ) { |
| 193 | 197 | $this->assertContains( sprintf( 'id="post-%d"', $id ), $output ); |
| 194 | 198 | } |
| | 199 | |
| 195 | 200 | } |
| 196 | 201 | |
| 197 | 202 | /** |