From aed40588177681d34e3551974ca1b21d7dec850f Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 11 Sep 2018 14:15:16 +0200 Subject: [PATCH] add test api key for tests --- .travis.yml | 2 ++ tests/MandrillTest.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6350978..38df7df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,9 +9,11 @@ cache: directories: - $HOME/.composer/cache/files +# The api key is just a test key env: global: - COMPOSER_ROOT_VERSION=4.0.x-dev + - MANDRILL_API_KEY=pDqjxhMOJEZ7rqrMba107A matrix: include: diff --git a/tests/MandrillTest.php b/tests/MandrillTest.php index 8ce6faf..e54c563 100644 --- a/tests/MandrillTest.php +++ b/tests/MandrillTest.php @@ -49,7 +49,7 @@ public function testSending() $test_to = Environment::getEnv('MANDRILL_TEST_TO'); $test_from = Environment::getEnv('MANDRILL_TEST_FROM'); if (!$test_from || !$test_to) { - $this->markTestIncomplete("You must define tests environement variable: MANDRILL_TEST_TO, MANDRILL_TEST_FROM"); + $this->markTestSkipped("You must define tests environement variable: MANDRILL_TEST_TO, MANDRILL_TEST_FROM"); } MandrillHelper::registerTransport();