mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 04:26:02 +03:00
Fix: launch list test before create test
This commit is contained in:
parent
8d29ddeb73
commit
5e78459970
@ -164,6 +164,16 @@ class ServerTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertFalse($server->hasMailBox('Cheese'), 'Does not have mailbox "Cheese"');
|
||||
}
|
||||
|
||||
public function testListMailbox()
|
||||
{
|
||||
$server = Static::getServer();
|
||||
$spec = sprintf('{%s:143/novalidate-cert}', TESTING_SERVER_HOST);
|
||||
|
||||
$list = $server->listMailbox('*');
|
||||
$this->assertContains($spec.'Sent', $list, 'Has mailbox "Sent"');
|
||||
$this->assertNotContains($spec.'Cheese', $list, 'Does not have mailbox "Cheese"');
|
||||
}
|
||||
|
||||
public function testCreateMailbox()
|
||||
{
|
||||
$server = Static::getServer();
|
||||
@ -205,16 +215,6 @@ class ServerTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertFalse($server->getMessageByUid(12), 'Message successfully expunged');
|
||||
}
|
||||
|
||||
public function testListMailbox()
|
||||
{
|
||||
$server = Static::getServer();
|
||||
$spec = sprintf('{%s:143/novalidate-cert}', TESTING_SERVER_HOST);
|
||||
|
||||
$list = $server->listMailbox('*');
|
||||
$this->assertContains($spec.'Sent', $list);
|
||||
$this->assertNotContains($spec.'Cheese', $list);
|
||||
}
|
||||
|
||||
public static function getServer()
|
||||
{
|
||||
$server = new Server(TESTING_SERVER_HOST, 143);
|
||||
|
Loading…
Reference in New Issue
Block a user