Update 03_Testing_Email.md

Fix typo and link.  It is assertEmailSent not assertEmailSend and a method of SapphireTest.  Thanks.
This commit is contained in:
Antony Thorpe 2015-04-21 18:17:56 +12:00
parent f2e2d4e376
commit 27d3a27a97

View File

@ -15,10 +15,10 @@ email was sent using this method.
$e->send();
}
To test that `MyMethod` sends the correct email, use the [api:Email::assertEmailSent] method.
To test that `MyMethod` sends the correct email, use the [api:SapphireTest::assertEmailSent] method.
:::php
$this->assertEmailSend($to, $from, $subject, $body);
$this->assertEmailSent($to, $from, $subject, $body);
// to assert that the email is sent to the correct person
$this->assertEmailSent("someone@example.com", null, "/th.*e$/");