WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/10/2021 01:23:42 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Tests: Replace most instances of assertEquals() in phpunit/includes/ with assertSame().

Follow-up to [48937], [48939], [48940], [48944].

Props johnbillion, jrf, SergeyBiryukov.
See #38266, #52482.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase-rest-api.php

    r49606 r50283  
    99
    1010        $this->assertWPError( $response );
    11         $this->assertEquals( $code, $response->get_error_code() );
     11        $this->assertSame( $code, $response->get_error_code() );
    1212
    1313        if ( null !== $status ) {
    1414            $data = $response->get_error_data();
    1515            $this->assertArrayHasKey( 'status', $data );
    16             $this->assertEquals( $status, $data['status'] );
     16            $this->assertSame( $status, $data['status'] );
    1717        }
    1818    }
Note: See TracChangeset for help on using the changeset viewer.