Page MenuHomePhorge

Oauth.php
No OneTemporary

Size
749 B
Referenced Files
None
Subscribers
None

Oauth.php

<?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

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)

Event Timeline