mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Tests: Use more appropriate assertions in various tests.
This replaces instances of `assertTrue( is_a( ... ) )` with `assertInstanceOf()` to use native PHPUnit functionality. Follow-up to [51335], [51337], [51367], [51397], [51403], [51404]. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -102,7 +102,7 @@ class Tests_Post_Query extends WP_UnitTestCase {
|
||||
foreach ( $query->posts as $post ) {
|
||||
|
||||
// Posts are WP_Post objects.
|
||||
$this->assertTrue( is_a( $post, 'WP_Post' ) );
|
||||
$this->assertInstanceOf( 'WP_Post', $post );
|
||||
|
||||
// Filters are raw.
|
||||
$this->assertSame( 'raw', $post->filter );
|
||||
|
||||
Reference in New Issue
Block a user