Make WordPress Core


Ignore:
Timestamp:
07/07/2021 10:32:56 AM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-themes-controller.php

    r51137 r51367  
    343343        $data       = $response->get_data();
    344344        $properties = $data['schema']['properties'];
    345         $this->assertSame( 15, count( $properties ) );
     345        $this->assertCount( 15, $properties );
    346346
    347347        $this->assertArrayHasKey( 'author', $properties );
Note: See TracChangeset for help on using the changeset viewer.