Download the PHP package punktde/codeception-maildev without Composer
On this page you can find all versions of the php package punktde/codeception-maildev. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download punktde/codeception-maildev
More information about punktde/codeception-maildev
Files in punktde/codeception-maildev
Package codeception-maildev
Short Description Provides a module and gherkin steps to access a maildev api for codeception testing
License GPL-3.0-or-later
Informations about the package codeception-maildev
punktde/codeception-maildev
Gherkin Steps and module functions to test using MailDev
How to use
Prequesits
You have to have MailDev installed and have your application configured to send mails to maildev. See https://github.com/maildev/maildev
Module
You have to add the Webdriver
module to your config to use the MailDev
module.
Use the module PunktDe\Codeception\MailDev\Module\MailDev
in your codeception.yaml
. You can configure under which uri the maildev client is reachable (default is http://127.0.0.1:8025)
You can add authentication parameters to authenticate with the guzzle client when necessary. For futher details see https://docs.guzzlephp.org/en/latest/request-options.html#auth
Gherkin steps
Just add the trait PunktDe\Codeception\MailDev\ActorTraits\MailDev
to your testing actor. Then you can use *.feature
files to write your gherkin tests with the new steps.
Example actor
Which steps are there?
To get all the steps available you can just run the following command:
This will give you a table of all the steps available.
All versions of codeception-maildev with dependencies
codeception/module-webdriver Version ^3.0
neos/utility-arrays Version *