Videos
Check out our tutorial video series.
How to Test User Sign Up with Real Emails using Codeception and MailSlurp for PHP Applications
Time: 00:03.858, Memory: 10.00 MB
OK (1 test, 1 assertion)
An inbox has an and an
property. We will use them to sign up a user.
We can sign up a user by loading the playground app and submitting the email address and a test password:
Next we can wait for the user to receive a confirmation email and parse the verification code from the body:
Once extracted we can use the code to confirm the user.
After successfully confirming a user we can login and see a picture of a happy dog. Let's do that:
By running we should see an automated sign up and confirmation
Codeception is a powerful framework for writing end-to-end acceptance tests in PHP. It used with Laravel, Symfony, Wordpress and many other application. By combining Codeception with MailSlurp we can test applications using real email addresses. As you can see in the example above we were able to create real email accounts for each test user and receive confirmation codes. Use MailSlurp and Codeception today to test your own application. Sign up now.
Check out our tutorial video series.
Email and SMS guides for automation and testing.
View github project code for multiple languages.
Latest posts from the MailSlurp team.
Test, build, and automate messaging with a free MailSlurp account.