Skip to content

Commit

Permalink
move mailpit test script
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFeledy committed Feb 27, 2025
1 parent 51b5656 commit fd5579e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
5 changes: 1 addition & 4 deletions examples/advanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ lando exec phpserver -- env | grep MAIL_HOST= | tee >(cat 1>&2) | grep -q MAIL_H
lando exec phpserver -- env | grep MAIL_PORT= | tee >(cat 1>&2) | grep -q MAIL_PORT=2025
lando exec phpserver -- cat /usr/local/etc/php/conf.d/zzzz-lando-mailpit.ini | grep -q sendmailpit || echo 'invalid php.ini' 1>&2

# Should have the mailpit binary in the helpers directory
lando exec phpserver -- ls -l /helpers/mailpit

# Should be able to send messages to the SMTP server
lando exec phpserver -- mailpit-test.php
lando exec phpserver -- ./mailpit-test.php

# Should be able to retrieve messages from the SMTP server
lando exec phpserver -- wget sendmailpit/api/v1/messages -qO - | grep -q [email protected]
Expand Down
1 change: 1 addition & 0 deletions examples/advanced/mailpit-test.php
5 changes: 1 addition & 4 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ lando exec appserver -- env | grep MAIL_HOST= | tee >(cat 1>&2) | grep -q MAIL_H
lando exec appserver -- env | grep MAIL_PORT= | tee >(cat 1>&2) | grep -q MAIL_PORT=1025
lando exec appserver -- cat /usr/local/etc/php/conf.d/zzzz-lando-mailpit.ini | grep -q sendmailpit || echo 'invalid php.ini' 1>&2

# Should have the mailpit binary in the helpers directory
lando exec appserver -- ls -l /helpers/mailpit

# Should be able to send messages to the SMTP server
lando exec appserver -- mailpit-test.php
lando exec appserver -- ./mailpit-test.php

# Should be able to retrieve messages from the SMTP server
lando exec appserver -- wget sendmailpit/api/v1/messages -qO - | grep -q [email protected]
Expand Down
1 change: 1 addition & 0 deletions examples/basic/mailpit-test.php
File renamed without changes.

0 comments on commit fd5579e

Please sign in to comment.