mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54402 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -298,7 +298,7 @@ class Tests_Query_Date extends WP_UnitTestCase {
|
||||
)
|
||||
);
|
||||
|
||||
$this->assertEquals( $expected, $posts );
|
||||
$this->assertEqualSets( $expected, $posts );
|
||||
}
|
||||
|
||||
public function test_simple_monthnum_expecting_results() {
|
||||
|
||||
Reference in New Issue
Block a user