Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7057962
IMAPTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
935 B
Referenced Files
None
Subscribers
None
IMAPTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment