diff --git a/docs/en/02_Developer_Guides/06_Testing/How_Tos/03_Testing_Email.md b/docs/en/02_Developer_Guides/06_Testing/How_Tos/03_Testing_Email.md index 8b456bff1..db8f66a69 100644 --- a/docs/en/02_Developer_Guides/06_Testing/How_Tos/03_Testing_Email.md +++ b/docs/en/02_Developer_Guides/06_Testing/How_Tos/03_Testing_Email.md @@ -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$/");