Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7056003
OutputJson.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
621 B
Referenced Files
None
Subscribers
None
OutputJson.php
View Options
<?php
/**
* Test class to test rcmail_output_json class
*
* @package Tests
*/
class
Rcmail_RcmailOutputJson
extends
ActionTestCase
{
/**
* Test show_message() method
*/
function
test_show_message
()
{
$rcmail
=
rcube
::
get_instance
();
$output
=
new
rcmail_output_json
();
$reflection
=
new
ReflectionClass
(
$output
);
$commands
=
$reflection
->
getProperty
(
'commands'
);
$commands
->
setAccessible
(
true
);
$output
->
show_message
(
'unknown'
);
$this
->
assertSame
([[
'display_message'
,
'unknown'
,
'notice'
,
0
]],
$commands
->
getValue
(
$output
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 3:14 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
864724
Default Alt Text
OutputJson.php (621 B)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment