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:
parent
aba30dc390
commit
274902b03a
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user