Changeset 55087 for trunk/tests/phpunit/tests/pluggable/wpMail.php
- Timestamp:
- 01/18/2023 12:58:05 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/pluggable/wpMail.php
r55032 r55087 478 478 $attachments = $mailer->getAttachments(); 479 479 480 $this->assertTrue( $mailer->attachmentExists() );481 $this->assertSame( $attachments[0][1], $attachments[0][2] );482 $this->assertSame( $attachments[1][1], $attachments[1][2] );480 $this->assertTrue( $mailer->attachmentExists(), 'There are no attachments.' ); 481 $this->assertSame( $attachments[0][1], $attachments[0][2], 'The first attachment name did not match.' ); 482 $this->assertSame( $attachments[1][1], $attachments[1][2], 'The second attachment name did not match.' ); 483 483 } 484 484 … … 506 506 $attachments = $mailer->getAttachments(); 507 507 508 $this->assertTrue( $mailer->attachmentExists() );509 $this->assertSame( 'alonac.jpg', $attachments[0][2] );510 $this->assertSame( 'selffaw.jpg', $attachments[1][2] );508 $this->assertTrue( $mailer->attachmentExists(), 'There are no attachments.' ); 509 $this->assertSame( 'alonac.jpg', $attachments[0][2], 'The first attachment name did not match.' ); 510 $this->assertSame( 'selffaw.jpg', $attachments[1][2], 'The second attachment name did not match.' ); 511 511 } 512 512
Note: See TracChangeset
for help on using the changeset viewer.