Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120827246
AboutTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
AboutTest.php
View Options
<?php
namespace
Tests\Browser\Settings
;
use
Tests\Browser\Components\App
;
use
Tests\Browser\Components\Dialog
;
class
AboutTest
extends
\Tests\Browser\TestCase
{
public
function
testAbout
()
{
$this
->
browse
(
function
(
$browser
)
{
$browser
->
go
(
'settings'
);
$browser
->
clickTaskMenuItem
(
'about'
);
$browser
->
with
(
new
Dialog
(),
function
(
$browser
)
{
$browser
->
assertDialogTitle
(
'About'
)
->
assertButton
(
'cancel'
,
'Close'
)
->
assertVisible
(
'@content #aboutframe'
);
if
(
$url
=
\rcmail
::
get_instance
()->
config
->
get
(
'support_url'
))
{
$browser
->
assertButton
(
'mainaction.help'
,
'Get support'
);
}
});
$browser
->
withinFrame
(
'#aboutframe'
,
function
(
$browser
)
{
// check task and action
$browser
->
with
(
new
App
(),
function
(
$browser
)
{
$browser
->
assertEnv
(
'task'
,
'settings'
);
$browser
->
assertEnv
(
'action'
,
'about'
);
});
$browser
->
assertSee
(
$this
->
app
->
config
->
get
(
'product_name'
));
$browser
->
assertVisible
(
'#pluginlist'
);
});
$browser
->
with
(
new
Dialog
(),
function
(
$browser
)
{
$browser
->
closeDialog
();
});
});
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 11:08 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18795744
Default Alt Text
AboutTest.php (1 KB)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline