Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751987
Rcube.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
Rcube.php
View Options
<?php
/**
* Test class to test rcube class
*
* @package Tests
*/
class
Framework_Rcube
extends
PHPUnit\Framework\TestCase
{
/**
* Class constructor
*/
function
test_class
()
{
$object
=
rcube
::
get_instance
();
$this
->
assertInstanceOf
(
'rcube'
,
$object
,
"Class singleton"
);
}
/**
* rcube::read_localization()
*/
function
test_read_localization
()
{
$rcube
=
rcube
::
get_instance
();
$result
=
$rcube
->
read_localization
(
INSTALL_PATH
.
'plugins/acl/localization'
,
'pl_PL'
);
$this
->
assertSame
(
'Zapis'
,
$result
[
'aclwrite'
]);
}
/**
* rcube::list_languages()
*/
function
test_list_languages
()
{
$rcube
=
rcube
::
get_instance
();
$result
=
$rcube
->
list_languages
();
$this
->
assertSame
(
'English (US)'
,
$result
[
'en_US'
]);
}
/**
* rcube::encrypt() and rcube::decrypt()
*/
function
test_encrypt_and_decrypt
()
{
$rcube
=
rcube
::
get_instance
();
$result
=
$rcube
->
decrypt
(
$rcube
->
encrypt
(
'test'
));
$this
->
assertSame
(
'test'
,
$result
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 3:39 AM (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fb/14/77bad74533a2dcdf5b74fecc6aa3
Default Alt Text
Rcube.php (1 KB)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline