mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
f2e2d4e376
commit
27d3a27a97
@ -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$/");
|
||||
|
Loading…
Reference in New Issue
Block a user