mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
Merge pull request #41 from tedivm/testing_dovecot
Dovecot Testing Package Updates
This commit is contained in:
commit
b48ca178d7
@ -15,7 +15,7 @@
|
||||
"php": ">=5.3.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"tedivm/dovecottesting": "0.0.1"
|
||||
"tedivm/dovecottesting": "~1.2"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {"Fetch": "src/"}
|
||||
|
@ -184,6 +184,7 @@ class MessageTest extends \PHPUnit_Framework_TestCase
|
||||
|
||||
// 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');
|
||||
|
@ -15,6 +15,8 @@ define('TESTING', true);
|
||||
define('TEST_USER', 'testuser');
|
||||
define('TEST_PASSWORD', 'applesauce');
|
||||
|
||||
date_default_timezone_set('UTC');
|
||||
|
||||
if(getenv('TRAVIS'))
|
||||
{
|
||||
define('TESTING_ENVIRONMENT', 'TRAVIS');
|
||||
@ -23,7 +25,7 @@ if(getenv('TRAVIS'))
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user