Changeset 42343 for trunk/tests/phpunit/includes/mock-mailer.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/mock-mailer.php
r41185 r42343 54 54 public function get_recipient( $address_type, $mock_sent_index = 0, $recipient_index = 0 ) { 55 55 $retval = false; 56 $mock = $this->get_sent( $mock_sent_index );56 $mock = $this->get_sent( $mock_sent_index ); 57 57 if ( $mock ) { 58 58 if ( isset( $mock->{$address_type}[ $recipient_index ] ) ) { 59 $address_index = $mock->{$address_type}[ $recipient_index ];59 $address_index = $mock->{$address_type}[ $recipient_index ]; 60 60 $recipient_data = array( 61 61 'address' => ( isset( $address_index[0] ) && ! empty( $address_index[0] ) ) ? $address_index[0] : 'No address set',
Note: See TracChangeset
for help on using the changeset viewer.