Test-Suite: make wp_die() a pluggable function
|Reported by:||hakre||Owned by:||westi|
There are multiple occurences of the die() (and perhaps exit()) statement within the code.
Those can be a blocker in running the testsuite. I suggest to replace those with a call to a new function called wp_exit(); which is plugable so that the testsuite can replace it.
Otherwise it's not possible to test code containing those statements. At least I'm not aware of a method to do so.
Change History (17)
- Milestone changed from Unassigned to 3.0
- Version set to 3.0
comment:11 hakre — 3 years ago
- Summary changed from replace die() and exit() with a pluggable wp_exit(); function to make wp_die() a pluggable function