Skip to content

Commit

Permalink
Two small bugfixes for JOauth.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronschmitz committed Aug 8, 2012
1 parent 91ae54b commit 398de52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/joomla/oauth/v2client.php
Expand Up @@ -49,7 +49,7 @@ class JOauthV2client
public function __construct(JRegistry $options = null, JOauthHttp $http = null, JInput $input = null)
{
$this->options = isset($options) ? $options : new JRegistry;
$this->http = isset($http) ? $http : new JHttp($this->options, $this->client);
$this->http = isset($http) ? $http : new JOauthHttp($this->options);
$this->input = isset($input) ? $input : JFactory::getApplication()->input;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/suites/unit/joomla/oauth/JOauthHttpTest.php
Expand Up @@ -47,7 +47,7 @@ class JOauthHttpTest extends PHPUnit_Framework_TestCase
protected function setUp()
{
$this->options = new JRegistry;
$this->transport = $this->getMock('JHttpTransportStream', array('request'), array($this->options), 'CustomTransport', false);
$this->transport = $this->getMock('JHttpTransportStream', array('request'), array($this->options), null, false);

$this->object = new JOauthHttp($this->options, $this->transport);
}
Expand Down

0 comments on commit 398de52

Please sign in to comment.