Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117883485
Help.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
995 B
Referenced Files
None
Subscribers
None
Help.php
View Options
<?php
class
Help_Plugin
extends
PHPUnit\Framework\TestCase
{
public
static
function
setUpBeforeClass
():
void
{
include_once
__DIR__
.
'/../help.php'
;
}
/**
* Plugin object construction test
*/
function
test_constructor
()
{
$rcube
=
rcube
::
get_instance
();
$plugin
=
new
help
(
$rcube
->
plugins
);
$this
->
assertInstanceOf
(
'help'
,
$plugin
);
$this
->
assertInstanceOf
(
'rcube_plugin'
,
$plugin
);
}
/**
* Test help_metadata()
*/
function
test_help_metadata
()
{
$rcube
=
rcube
::
get_instance
();
$plugin
=
new
help
(
$rcube
->
plugins
);
$result
=
$plugin
->
help_metadata
();
$this
->
assertCount
(
3
,
$result
);
$this
->
assertMatchesRegularExpression
(
'|
\?
_task=settings&_action=about&_framed=1$|'
,
$result
[
'about'
]);
$this
->
assertSame
(
'self'
,
$result
[
'license'
]);
$this
->
assertSame
(
'https://docs.roundcube.net/doc/help/1.1/en_US/'
,
$result
[
'index'
]);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Apr 6, 1:04 AM (3 d, 44 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18831798
Default Alt Text
Help.php (995 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline