WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 12 months ago

#16 closed defect (fixed)

MockPHPMailer cannot access $to, $cc, $bcc

Reported by: duck_ Owned by: westi
Priority: normal Milestone: Legacy - Improve Framework
Component: Test Framework Keywords:
Cc:

Description

Those three properties of the PHPMailer object are now defined as private making them inaccessible even to subclasses. This means that the MockPHPMailer Send method will always set the "You must provide at least one recipient email address." error and return false. This in turn causes TestMailFunctions? to fail as $mock_sent will not be set.

Change History (1)

comment:1 nacin12 months ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed a long while ago.

Note: See TracTickets for help on using tickets.