[wp-trac] [WordPress Trac] #55654: Tests: Reduce usage of assertEquals for 6.1

WordPress Trac noreply at wordpress.org
Fri Oct 7 01:02:22 UTC 2022


#55654: Tests: Reduce usage of assertEquals for 6.1
--------------------------------------+------------------------
 Reporter:  hellofromTonya            |       Owner:  desrosj
     Type:  task (blessed)            |      Status:  reviewing
 Priority:  normal                    |   Milestone:  6.1
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------

Comment (by desrosj):

 In [changeset:"54402" 54402]:
 {{{
 #!CommitTicketReference repository="" revision="54402"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55654#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list