Build/Test Tools: Reset the PHPMailer mock in `Tests_Mail::tearDown()`.

Props welcher.
Fixes #36609.

git-svn-id: https://develop.svn.wordpress.org/trunk@37307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-04-23 08:15:11 +00:00
parent aba30dc390
commit 274902b03a
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ class Tests_Mail extends WP_UnitTestCase {
unset( $GLOBALS['phpmailer']->mock_sent );
}
function tearDown() {
unset( $GLOBALS['phpmailer']->mock_sent );
parent::tearDown();
}
/**
* Send a mail with a 1000 char long line.
*