Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120837740
HtmlPage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
808 B
Referenced Files
None
Subscribers
None
HtmlPage.php
View Options
<?php
/**
* Test class to test rcmail_html_page class
*
* @package Tests
*/
class
Rcmail_RcmailHtmlPage
extends
ActionTestCase
{
/**
* Test html page output
*/
function
test_html_output
()
{
$page
=
new
rcmail_html_page
();
$page
->
register_inline_warning
(
'Test'
,
'Button'
,
'http://url'
);
ob_start
();
$page
->
write
();
$output
=
ob_get_contents
();
ob_end_clean
();
$expected_body
=
'<body><div class="rcmail-inline-message rcmail-inline-warning"><span>Test</span>'
.
'<p class="rcmail-inline-buttons"><button onclick="location.href =
\'
http://url
\'
">Button</button></p></div>'
;
$this
->
assertTrue
(
strpos
(
$output
,
'<html'
)
===
0
);
$this
->
assertTrue
(
strpos
(
$output
,
$expected_body
)
!==
false
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:49 PM (3 d, 10 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/c2/2336227785f9429e52295ab841b8
Default Alt Text
HtmlPage.php (808 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline