[wp-trac] [WordPress Trac] #56800: Tests: Reduce usage of assertEquals for 6.2
WordPress Trac
noreply at wordpress.org
Mon Mar 6 17:44:30 UTC 2023
#56800: Tests: Reduce usage of assertEquals for 6.2
---------------------------------------------+-----------------------------
Reporter: desrosj | Owner: hellofromTonya
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+-----------------------------
Comment (by hellofromTonya):
In [changeset:"55468" 55468]:
{{{
#!CommitTicketReference repository="" revision="55468"
Tests: Use assertSame() in Tests_Theme_wpThemeJson.
Change from assertEquals() to assertSame(). Why? To ensure both the return
value and data type match the expected results.
Follow-up to [55216].
Props costdev, peterwilsoncc, mukesh27, ankitmaru.
See #56800, #57621.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56800#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list