diff --git a/composer.json b/composer.json index c604569..0051a92 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "php": ">=5.3.0" }, "require-dev": { - "tedivm/dovecottesting": "0.0.1" + "tedivm/dovecottesting": "~1.2" }, "autoload": { "psr-0": {"Fetch": "src/"} diff --git a/tests/Fetch/Test/MessageTest.php b/tests/Fetch/Test/MessageTest.php index da14bf6..0547414 100644 --- a/tests/Fetch/Test/MessageTest.php +++ b/tests/Fetch/Test/MessageTest.php @@ -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'); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 0f5786f..7597f3a 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -15,6 +15,8 @@ define('TEST_USER', 'testuser'); define('TEST_PASSWORD', 'applesauce'); +date_default_timezone_set('UTC'); + if(getenv('TRAVIS')) { define('TESTING_ENVIRONMENT', 'TRAVIS'); @@ -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; }