Tests: Use more appropriate assertions in various tests.

This replaces instances of `assertTrue( empty( ... ) )` with `assertEmpty()` to use native PHPUnit functionality.

Follow-up to [51335], [51337], [51367], [51397].

See #53363.

git-svn-id: https://develop.svn.wordpress.org/trunk@51403 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2021-07-11 12:41:48 +00:00
parent 2ebdfc16eb
commit 5d9a38ef41
12 changed files with 34 additions and 34 deletions
@@ -478,7 +478,7 @@ class REST_Block_Renderer_Controller_Test extends WP_Test_REST_Controller_Testca
$this->assertSame( 200, $response->get_status() );
$data = $response->get_data();
$this->assertTrue( empty( $data['rendered'] ) );
$this->assertEmpty( $data['rendered'] );
// Now test with post ID.
$request->set_param( 'post_id', self::$post_id );