mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user