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

WordPress Trac noreply at wordpress.org
Tue Sep 27 00:38:06 UTC 2022


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

 * keywords:  has-patch has-unit-tests needs-refresh => has-patch has-unit-
     tests


Comment:

 @desrosj Done.

 1. Merge conflicts have been resolved.
 2. New instances of `assertEquals()` have been replaced with more
 appropriate assertions.
 3. `assertArrayEqualsWithObject()`, proposed in the PR, has been removed,
 as `assertEqualSets()` performs more testing and has the same result.

 **Before the PR**
 528 instances of `assertEquals()`.

 **With the PR** (as of this comment)
 34 instances of `assertEquals()`.

 No source changes.

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


More information about the wp-trac mailing list