Files
roundcubemail/tests/Rcmail/OutputJson.php
Michael Voříšek d18406a8bd Fix binary operator spaces CS (#9330)
* align_single_space_minimal for assign

* assign operators grouping is not supported by PHP CS Fixer

* binary_operator_spaces = single_space

* fix anonymous function on single line

* align comments manually
2024-02-02 07:53:34 +01:00

25 lines
605 B
PHP

<?php
/**
* Test class to test rcmail_output_json class
*/
class Rcmail_RcmailOutputJson extends ActionTestCase
{
/**
* Test show_message() method
*/
public 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));
}
}