[wp-trac] [WordPress Trac] #55652: Test tool and unit test improvements for 6.1
WordPress Trac
noreply at wordpress.org
Wed Jun 15 14:43:14 UTC 2022
#55652: Test tool and unit test improvements 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:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"53510" 53510]:
{{{
#!CommitTicketReference repository="" revision="53510"
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], [51137], [51943], [53499], [53504], [53506],
[53509].
See #55652.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55652#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list