Files
roundcubemail/tests/Rcmail/OutputJson.php
Aleksander Machniak 8b16a7dfe7 More tests
2020-11-08 11:06:42 +01:00

27 lines
621 B
PHP

<?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));
}
}