Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7055559
Oauth.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
749 B
Referenced Files
None
Subscribers
None
Oauth.php
View Options
<?php
/**
* Test class to test rcmail_action_login_oauth
*
* @package Tests
*/
class
Actions_Login_Oauth
extends
ActionTestCase
{
/**
* Test run
*/
function
test_run_login_redirect
()
{
$action
=
new
rcmail_action_login_oauth
;
$output
=
$this
->
initOutput
(
rcmail_action
::
MODE_HTTP
,
'login'
,
''
);
$this
->
assertInstanceOf
(
'rcmail_action'
,
$action
);
$this
->
assertTrue
(
$action
->
checks
());
$this
->
runAndAssert
(
$action
,
OutputHtmlMock
::
E_EXIT
);
$result
=
$output
->
getOutput
();
$this
->
assertSame
(
"ERROR: Missing required OAuth config options 'oauth_auth_uri', 'oauth_client_id'"
,
trim
(
StderrMock
::
$output
));
$this
->
assertSame
(
null
,
$output
->
getOutput
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jun 12, 3:05 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
855831
Default Alt Text
Oauth.php (749 B)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment