Merge pull request #4088 from AntonyThorpe/patch-3

Update 03_Testing_Email.md
This commit is contained in:
Loz Calver 2015-04-21 21:57:13 +01:00
commit 4fe4d17eaf

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$/");