From fd5579e546f25c249f50848e6facd32a2eea5179 Mon Sep 17 00:00:00 2001 From: Aaron Feledy Date: Tue, 25 Feb 2025 17:25:58 -0600 Subject: [PATCH] move mailpit test script --- examples/advanced/README.md | 5 +---- examples/advanced/mailpit-test.php | 1 + examples/basic/README.md | 5 +---- examples/basic/mailpit-test.php | 1 + {scripts => examples}/mailpit-test.php | 0 5 files changed, 4 insertions(+), 8 deletions(-) create mode 120000 examples/advanced/mailpit-test.php create mode 120000 examples/basic/mailpit-test.php rename {scripts => examples}/mailpit-test.php (100%) diff --git a/examples/advanced/README.md b/examples/advanced/README.md index 648df7a..c38cabb 100644 --- a/examples/advanced/README.md +++ b/examples/advanced/README.md @@ -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 recipient@example.com diff --git a/examples/advanced/mailpit-test.php b/examples/advanced/mailpit-test.php new file mode 120000 index 0000000..92b9779 --- /dev/null +++ b/examples/advanced/mailpit-test.php @@ -0,0 +1 @@ +../mailpit-test.php \ No newline at end of file diff --git a/examples/basic/README.md b/examples/basic/README.md index b38d624..302cedf 100644 --- a/examples/basic/README.md +++ b/examples/basic/README.md @@ -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 recipient@example.com diff --git a/examples/basic/mailpit-test.php b/examples/basic/mailpit-test.php new file mode 120000 index 0000000..92b9779 --- /dev/null +++ b/examples/basic/mailpit-test.php @@ -0,0 +1 @@ +../mailpit-test.php \ No newline at end of file diff --git a/scripts/mailpit-test.php b/examples/mailpit-test.php similarity index 100% rename from scripts/mailpit-test.php rename to examples/mailpit-test.php