Files
roundcubemail/tests/Actions/Mail/Compose.php
Michael Voříšek 6a53a1d853 Fix CS (whitespace, visibility) (#9297)
* Fix "method_argument_space"

* Fix "control_structure_continuation_position"

* Fix "new_with_parentheses"

* Fix "blank_line_before_statement"

* Fix "visibility_required"

* Fix some "array_indentation"

* Fix some "array_indentation" - unify all "rcube::raise_error" calls

* rm useless eslint ignores and add rules counts

* sort eslint ignores

* fix eslint ignores grammar

* Revert "Fix "blank_line_before_statement""

* fix CS 3.46.0
2024-01-04 14:26:35 +01:00

38 lines
820 B
PHP

<?php
/**
* Test class to test rcmail_action_mail_compose
*/
class Actions_Mail_Compose extends ActionTestCase
{
/**
* Class constructor
*/
public function test_class()
{
$object = new rcmail_action_mail_compose();
$this->assertInstanceOf('rcmail_action', $object);
}
/**
* Test quote_text() method
*/
public function test_quote_text()
{
$action = new rcmail_action_mail_compose();
$this->assertSame('> ', $action->quote_text(''));
$result = $action->quote_text("test1\ntest2");
$expected = "> test1\n> test2";
$this->assertSame($expected, $result);
$result = $action->quote_text("> test1\n> test2");
$expected = ">> test1\n>> test2";
$this->assertSame($expected, $result);
}
}