wp_mail(): Leverage Pluggable
-
Take advantage of
wp_mail()
being "pluggable" -
Define
wp_mail()
somewhere before loading WP -
Calls a static method in the parent
TestCase
class
function wp_mail($to, $subject, $message) { TestCase::mail_to_file($to, $subject, $message); }