Page MenuHomePhorge

IMAPTest.php
No OneTemporary

Size
935 B
Referenced Files
None
Subscribers
None

IMAPTest.php

<?php
namespace Tests\Feature\Backends;
use App\Backends\IMAP;
use Tests\TestCase;
class IMAPTest extends TestCase
{
/**
* Test verifying IMAP account existence (existing account)
*
* @group imap
*/
public function testVerifyAccountExisting(): void
{
$result = IMAP::verifyAccount('john@kolab.org');
// TODO: Mocking rcube_imap_generic is not that nice,
// Find a way to be sure some testing account has folders
// initialized, and some other not, so we can make assertions
// on the verifyAccount() result
$this->markTestIncomplete();
}
/**
* Test verifying IMAP account existence (non-existing account)
*
* @group imap
*/
public function testVerifyAccountNonExisting(): void
{
$this->expectException(\Exception::class);
IMAP::verifyAccount('non-existing@domain.tld');
}
}

File Metadata

Mime Type
text/x-php
Expires
Fri, Jun 12, 4:15 AM (12 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
892678
Default Alt Text
IMAPTest.php (935 B)

Event Timeline