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:
Sergey Biryukov
2021-07-15 09:06:20 +00:00
parent f17f4f5f7e
commit cc5e3f7811
4 changed files with 4 additions and 4 deletions

View File

@@ -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 );