[wp-trac] [WordPress Trac] #42045: @expectedIncorrectUsage annotation fails under specific scenerio
WordPress Trac
noreply at wordpress.org
Fri Aug 20 17:45:08 UTC 2021
#42045: @expectedIncorrectUsage annotation fails under specific scenerio
------------------------------+----------------------
Reporter: thekt12 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Build/Test Tools | Version:
Severity: normal | Resolution: wontfix
Keywords: close | Focuses:
------------------------------+----------------------
Changes (by hellofromTonya):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
I agree with both @johnbillion and @swissspidy about:
- writing single assertions in a single test method
- not encouraging multiple assertions per test
For multiple scenarios, a data provider is a good choice. Why? Each
scenario is run ''individually'' in the test method.
As it's been 4 years since the ticket was marked as a `close` candidate
with no follow-up, closing this ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42045#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list