-
Notifications
You must be signed in to change notification settings - Fork 0
Update README.md: Minor updates #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Mailpit Module for the Codeception Testing Framework | ||
|
||
This codeception module can be used to run tests against your [Mailpit](https://github.com/axllent/mailpit) instance. | ||
This [Codeception](https://codeception.com/) module can be used to run tests against your [Mailpit](https://github.com/axllent/mailpit) instance. | ||
|
||
Mailpit was inspired by MailHog, which is not developed anymore. Because it is not a 1:1 replacement, the API changed | ||
and existing MailHog codeception modules cannot be used anymore. | ||
|
@@ -10,19 +10,18 @@ This codeception module is based on [oqq/codeception-email-mailhog](https://gith | |
brings nearly the same functionality for Mailpit as the mentioned modules did for MailHog. | ||
|
||
## Installation | ||
Through composer, require the package: | ||
With Composer: | ||
```shell | ||
composer req koehnlein/codeception-email-mailpit --dev | ||
composer require koehnlein/codeception-email-mailpit --dev | ||
``` | ||
Then turn it on in your Codeception suite yaml file | ||
Then enable it in your `Functional.suite.yml` or `Acceptance.suite.yml`: | ||
```yaml | ||
class_name: FunctionalTester | ||
modules: | ||
enabled: | ||
- Mailpit | ||
config: | ||
Mailpit: | ||
url: 'http://mailpit.dev' | ||
url: 'http://localhost' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It know that http://mailpit.dev is not a good example, because There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
config:
Mailpit:
url: 'http://localhost'
port: '8025' |
||
port: '8025' | ||
``` | ||
Additional parameters can be fed directly to the Guzzle connection using the `guzzleRequestOptions` variable. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a need to change this line. Why would you do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to explain what
req
stands for, cause some newbies might not understand it :-)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can assume that users know how composer. The line is for simplification so that you can simply copy the command.