Changeset 51462 for trunk/tests/phpunit/tests/admin/includesListTable.php
- Timestamp:
- 07/19/2021 02:00:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesListTable.php
r49691 r51462 222 222 223 223 foreach ( $expected_ids as $id ) { 224 $this->assert Contains( sprintf( 'id="post-%d"', $id ), $output );224 $this->assertStringContainsString( sprintf( 'id="post-%d"', $id ), $output ); 225 225 } 226 226 } … … 237 237 $output = ob_get_clean(); 238 238 239 $this->assert NotContains( 'id="post-query-submit"', $output );239 $this->assertStringNotContainsString( 'id="post-query-submit"', $output ); 240 240 } 241 241 … … 251 251 $output = ob_get_clean(); 252 252 253 $this->assert NotContains( 'id="filter-by-date"', $output );253 $this->assertStringNotContainsString( 'id="filter-by-date"', $output ); 254 254 } 255 255 … … 265 265 $output = ob_get_clean(); 266 266 267 $this->assert NotContains( 'id="cat"', $output );267 $this->assertStringNotContainsString( 'id="cat"', $output ); 268 268 } 269 269 … … 279 279 $output = ob_get_clean(); 280 280 281 $this->assert NotContains( 'id="delete_all"', $output );281 $this->assertStringNotContainsString( 'id="delete_all"', $output ); 282 282 } 283 283 … … 292 292 $output = ob_get_clean(); 293 293 294 $this->assert NotContains( 'id="post-query-submit"', $output );294 $this->assertStringNotContainsString( 'id="post-query-submit"', $output ); 295 295 } 296 296 … … 314 314 $output = ob_get_clean(); 315 315 316 $this->assert Contains( 'id="post-query-submit"', $output );316 $this->assertStringContainsString( 'id="post-query-submit"', $output ); 317 317 } 318 318 … … 336 336 $output = ob_get_clean(); 337 337 338 $this->assert Contains( 'id="filter-by-comment-type"', $output );339 $this->assert Contains( "<option value='comment'>", $output );338 $this->assertStringContainsString( 'id="filter-by-comment-type"', $output ); 339 $this->assertStringContainsString( "<option value='comment'>", $output ); 340 340 } 341 341 … … 350 350 $output = ob_get_clean(); 351 351 352 $this->assert NotContains( 'id="delete_all"', $output );352 $this->assertStringNotContainsString( 'id="delete_all"', $output ); 353 353 } 354 354 … … 385 385 $expected = str_replace( "\r\n", "\n", $expected ); 386 386 387 $this->assert Contains( $expected, $output );387 $this->assertStringContainsString( $expected, $output ); 388 388 } 389 389 … … 412 412 $output = get_echo( array( $object, 'print_column_headers' ) ); 413 413 414 $this->assert Contains( '?orderby=comment_author&order=desc', $output, 'Mismatch of the default link ordering for comment author column. Should be desc.' );415 $this->assert Contains( 'column-author sortable asc', $output, 'Mismatch of CSS classes for the comment author column.' );416 417 $this->assert Contains( '?orderby=comment_post_ID&order=asc', $output, 'Mismatch of the default link ordering for comment response column. Should be asc.' );418 $this->assert Contains( 'column-response sortable desc', $output, 'Mismatch of CSS classes for the comment post ID column.' );419 420 $this->assert Contains( '?orderby=comment_date&order=desc', $output, 'Mismatch of the default link ordering for comment date column. Should be asc.' );421 $this->assert Contains( 'column-date sortable asc', $output, 'Mismatch of CSS classes for the comment date column.' );414 $this->assertStringContainsString( '?orderby=comment_author&order=desc', $output, 'Mismatch of the default link ordering for comment author column. Should be desc.' ); 415 $this->assertStringContainsString( 'column-author sortable asc', $output, 'Mismatch of CSS classes for the comment author column.' ); 416 417 $this->assertStringContainsString( '?orderby=comment_post_ID&order=asc', $output, 'Mismatch of the default link ordering for comment response column. Should be asc.' ); 418 $this->assertStringContainsString( 'column-response sortable desc', $output, 'Mismatch of CSS classes for the comment post ID column.' ); 419 420 $this->assertStringContainsString( '?orderby=comment_date&order=desc', $output, 'Mismatch of the default link ordering for comment date column. Should be asc.' ); 421 $this->assertStringContainsString( 'column-date sortable asc', $output, 'Mismatch of CSS classes for the comment date column.' ); 422 422 } 423 423 … … 450 450 $output = get_echo( array( $object, 'print_column_headers' ) ); 451 451 452 $this->assert Contains( '?orderby=comment_author&order=asc', $output, 'Mismatch of the default link ordering for comment author column. Should be asc.' );453 $this->assert Contains( 'column-author sortable desc', $output, 'Mismatch of CSS classes for the comment author column.' );454 455 $this->assert Contains( '?orderby=comment_post_ID&order=asc', $output, 'Mismatch of the default link ordering for comment response column. Should be asc.' );456 $this->assert Contains( 'column-response sortable desc', $output, 'Mismatch of CSS classes for the comment post ID column.' );457 458 $this->assert Contains( '?orderby=comment_date&order=asc', $output, 'Mismatch of the current link ordering for comment date column. Should be asc.' );459 $this->assert Contains( 'column-date sorted desc', $output, 'Mismatch of CSS classes for the comment date column.' );452 $this->assertStringContainsString( '?orderby=comment_author&order=asc', $output, 'Mismatch of the default link ordering for comment author column. Should be asc.' ); 453 $this->assertStringContainsString( 'column-author sortable desc', $output, 'Mismatch of CSS classes for the comment author column.' ); 454 455 $this->assertStringContainsString( '?orderby=comment_post_ID&order=asc', $output, 'Mismatch of the default link ordering for comment response column. Should be asc.' ); 456 $this->assertStringContainsString( 'column-response sortable desc', $output, 'Mismatch of CSS classes for the comment post ID column.' ); 457 458 $this->assertStringContainsString( '?orderby=comment_date&order=asc', $output, 'Mismatch of the current link ordering for comment date column. Should be asc.' ); 459 $this->assertStringContainsString( 'column-date sorted desc', $output, 'Mismatch of CSS classes for the comment date column.' ); 460 460 } 461 461
Note: See TracChangeset
for help on using the changeset viewer.