Changeset 37358 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 05/04/2016 03:48:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r36515 r37358 10 10 public function setUp() { 11 11 parent::setUp(); 12 unset( $GLOBALS['phpmailer']->mock_sent);12 reset_phpmailer_instance(); 13 13 } 14 14 … … 559 559 ) { 560 560 $email_sent_when_comment_added = true; 561 unset( $GLOBALS['phpmailer']->mock_sent);561 reset_phpmailer_instance(); 562 562 } else { 563 563 $email_sent_when_comment_added = false; … … 590 590 $email_sent_when_comment_approved = false; 591 591 } 592 unset( $GLOBALS['phpmailer']->mock_sent);592 reset_phpmailer_instance(); 593 593 594 594 // Post authors are notified when a new comment is added to their post. … … 608 608 'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) { 609 609 $email_sent_when_comment_added = true; 610 unset( $GLOBALS['phpmailer']->mock_sent);610 reset_phpmailer_instance(); 611 611 } else { 612 612 $email_sent_when_comment_added = false;
Note: See TracChangeset
for help on using the changeset viewer.