Make WordPress Core


Ignore:
Timestamp:
10/07/2022 01:02:07 AM (2 years ago)
Author:
desrosj
Message:

Tests: Replace some occurrences of assertEquals() with assertSame().

This ensures that not only the return values match the expected results, but also that their type is the same.

Props costdev, desrosj.
See #55654.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/getPages.php

    r52010 r54402  
    425425        );
    426426        // Confirm the defaults.
    427         $this->assertEquals( $pages, $pages_default_args );
     427        $this->assertEqualSets( $pages, $pages_default_args );
    428428
    429429        /*
     
    469469        );
    470470
    471         $this->assertEquals( $pages, $default_args );
     471        $this->assertEqualSets( $pages, $default_args );
    472472
    473473        /*
Note: See TracChangeset for help on using the changeset viewer.