diff --git a/src/Codeception/Module/Symfony/MailerAssertionsTrait.php b/src/Codeception/Module/Symfony/MailerAssertionsTrait.php index d51769e2..5c41c1d9 100644 --- a/src/Codeception/Module/Symfony/MailerAssertionsTrait.php +++ b/src/Codeception/Module/Symfony/MailerAssertionsTrait.php @@ -39,6 +39,7 @@ public function seeEmailIsSent(int $expectedCount = 1): void /** * Returns the last sent email. + * See also: [grabSentEmails()](https://codeception.com/docs/modules/Symfony#grabSentEmails) * * ```php * $emails {@*} * $emails = $I->grabSentEmails(); - * $address = $emails[0]->getTo()[0]; - * $I->assertSame('john_doe@user.com', $address->getAddress()); * ``` * * @return \Symfony\Component\Mime\Email[] @@ -90,4 +91,4 @@ protected function getMessageMailerEvents(): MessageEvents $this->fail("Emails can't be tested without Symfony Mailer service."); } -} \ No newline at end of file +}