#28486 closed enhancement (fixed)
Base unit test does not have setExpectedDeprecated method
Reported by: | rmccue | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 3.7 |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
The @expectedDeprecated
annotation was added in #25282, but does not have a method to accompany it.
This does not match the format used by PHPUnit, where @expectedException
matches to setExpectedException()
.
We should add setExpectedDeprecated
as a functional way to set this data.
Attachments (3)
Change History (14)
#5
@
10 years ago
Welcome @prasoon2211!
In 28486.diff, I don't think that it is necessary to have all of the add_action()
calls. The actions will be hooked up by the expectDeprecated()
method (called in setUp()
). So maybe all you would need is the array_push()
calls.
Also, it might be nice to add some tests for these methods in /tests/phpunit/tests/includes/helpers.php.
#7
@
10 years ago
@jdgrimes: Thanks for the input! 28486.3.diff
has been attached. Let me know if there's anything more to be done.
#8
@
10 years ago
- Keywords has-patch added; needs-patch removed
28486.3.diff looks good. Now we just need to wait for someone with commit access to come along...
#9
@
10 years ago
- Milestone changed from Future Release to 4.2
- Owner set to boonebgorges
- Status changed from new to reviewing
+1 makes sense to me.