mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-14 03:56:48 +01:00
* 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
28 lines
746 B
PHP
28 lines
746 B
PHP
<?php
|
|
|
|
/**
|
|
* Test class to test rcmail_action_utils_html2text
|
|
*/
|
|
class Actions_Utils_Html2text extends ActionTestCase
|
|
{
|
|
/**
|
|
* Test for run()
|
|
*/
|
|
public function test_run()
|
|
{
|
|
$object = new rcmail_action_utils_html2text();
|
|
$html = '<p>test</p>';
|
|
$object::$source = $this->createTempFile($html);
|
|
|
|
$output = $this->initOutput(rcmail_action::MODE_HTTP, 'utils', 'html2text');
|
|
|
|
$this->assertInstanceOf('rcmail_action', $object);
|
|
$this->assertTrue($object->checks());
|
|
|
|
$this->runAndAssert($object, OutputHtmlMock::E_EXIT);
|
|
|
|
$this->assertSame('test', $output->output);
|
|
$this->assertSame(['Content-Type: text/plain; charset=UTF-8'], $output->headers);
|
|
}
|
|
}
|