[wp-trac] [WordPress Trac] #52625: Test tool and unit test improvements for 5.8

WordPress Trac noreply at wordpress.org
Thu Jun 10 19:18:29 UTC 2021


#52625: Test tool and unit test improvements for 5.8
--------------------------------------+---------------------
 Reporter:  desrosj                   |       Owner:  (none)
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  5.8
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"51137" 51137]:
 {{{
 #!CommitTicketReference repository="" revision="51137"
 Tests: Use `assertSameSets()` in some newly introduced tests.

 This ensures that not only the array values being compared are equal, but
 also that their type is the same.

 Going forward, stricter type checking by using `assertSameSets()` or
 `assertSameSetsWithIndex()` should generally be preferred, to make the
 tests more reliable.

 Follow-up to [48939], [49925], [50157], [50959], [50960], [50995],
 [51079].

 See #52625.
 }}}

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


More information about the wp-trac mailing list