[wp-trac] [WordPress Trac] #56800: Tests: Reduce usage of assertEquals for 6.2

WordPress Trac noreply at wordpress.org
Mon Mar 6 14:44:50 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:"55465" 55465]:
 {{{
 #!CommitTicketReference repository="" revision="55465"
 Build/Test Tooling: Use `assertSame()` in `WP_Date_Query` tests.

 Change from `assertEquals()` to `assertSame()`. Why? To ensure both the
 return value and data type match the expected results.

 Follow-up to [54530].

 Props costdev, peterwilsoncc, mukesh27, ankitmaru.
 See #56800.
 }}}

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


More information about the wp-trac mailing list