mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-02 21:56:56 +00:00
Tests: Use more appropriate assertions in various tests.
This replaces instances of `assertSame( [number], count( ... ) )` with `assertCount()` to use native PHPUnit functionality. Follow-up to [51335], [51337]. See #53363. git-svn-id: https://develop.svn.wordpress.org/trunk@51367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1450,7 +1450,7 @@ class WP_Test_REST_Widgets_Controller extends WP_Test_REST_Controller_Testcase {
|
||||
$data = $response->get_data();
|
||||
$properties = $data['schema']['properties'];
|
||||
|
||||
$this->assertSame( 7, count( $properties ) );
|
||||
$this->assertCount( 7, $properties );
|
||||
$this->assertArrayHasKey( 'id', $properties );
|
||||
$this->assertArrayHasKey( 'id_base', $properties );
|
||||
$this->assertArrayHasKey( 'sidebar', $properties );
|
||||
|
||||
Reference in New Issue
Block a user