Commit faf42b56 authored by Johan Cwiklinski's avatar Johan Cwiklinski Committed by Johan Cwiklinski

Fix imap tests

parent 0e16b9f7
......@@ -41,31 +41,34 @@ class MailCollector extends DbTestCase {
private $mailgate_id;
public function testGetEmpty() {
$this
->if($this->newTestedInstance)
->then
->array($this->testedInstance->fields)
->isIdenticalTo([])
->boolean($this->testedInstance->getEmpty())
->array($this->testedInstance->fields)
->isIdenticalTo([
'id' => '',
'name' => '',
'host' => '',
'login' => '',
'filesize_max' => '2097152',
'is_active' => 1,
'date_mod' => '',
'comment' => '',
'passwd' => '',
'accepted' => '',
'refused' => '',
'use_kerberos' => '',
'errors' => '',
'use_mail_date' => '',
'date_creation' => '',
'requester_field' => ''
]);
$this->newTestedInstance();
$this->array($this->testedInstance->fields)->isIdenticalTo([]);
$this->boolean($this->testedInstance->getEmpty())->isTrue();
$fields = $this->testedInstance->fields;
$this->array($fields);
ksort($fields);
$expected = [
'id' => '',
'name' => '',
'host' => '',
'login' => '',
'filesize_max' => '2097152',
'is_active' => 1,
'date_mod' => '',
'comment' => '',
'passwd' => '',
'accepted' => '',
'refused' => '',
'use_kerberos' => '',
'errors' => '',
'use_mail_date' => '',
'date_creation' => '',
'requester_field' => ''
];
ksort($expected);
$this->array($fields)->isIdenticalTo($expected);
}
protected function subjectProvider() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment