Skip to content

Commit

Permalink
Merge pull request #41 from tedivm/testing_dovecot
Browse files Browse the repository at this point in the history
Dovecot Testing Package Updates
  • Loading branch information
tedivm committed Mar 14, 2014
2 parents 4432bd1 + ffeca29 commit b48ca17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"php": ">=5.3.0"
},
"require-dev": {
"tedivm/dovecottesting": "0.0.1"
"tedivm/dovecottesting": "~1.2"
},
"autoload": {
"psr-0": {"Fetch": "src/"}
Expand Down
1 change: 1 addition & 0 deletions tests/Fetch/Test/MessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ public function testMoveToMailbox()

// Get message from Test Folder
$message = $server->getMessageByUid(1);
$this->assertInstanceOf('\Fetch\Message', $message, 'Server returned Message.');

// Switch to Sent folder, count messages
$server->setMailBox('Sent');
Expand Down
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
define('TEST_USER', 'testuser');
define('TEST_PASSWORD', 'applesauce');

date_default_timezone_set('UTC');

if(getenv('TRAVIS'))
{
define('TESTING_ENVIRONMENT', 'TRAVIS');
Expand All @@ -23,7 +25,7 @@
define('TESTING_ENVIRONMENT', 'VAGRANT');
define('TESTING_SERVER_HOST', '172.31.1.2');
echo 'Initializing Environment using Vagrant' . PHP_EOL;
passthru('/bin/bash ' . __DIR__ . '/vendor/tedivm/dovecottesting/SetupEnvironment.sh');
passthru('/bin/bash ' . __DIR__ . '/../vendor/tedivm/dovecottesting/SetupEnvironment.sh');
echo 'Environment Initialized' . PHP_EOL . PHP_EOL . PHP_EOL;
}

Expand Down

0 comments on commit b48ca17

Please sign in to comment.