Skip to content

Commit

Permalink
add test api key for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Sep 11, 2018
1 parent 2027280 commit aed4058
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/MandrillTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aed4058

Please sign in to comment.