Skip to content

Commit f58a08d

Browse files
committed
Don't mock Transport at all
1 parent 711e8a6 commit f58a08d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Tests/GithubObjectTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Joomla\Github\Tests\Stub\GitHubTestCase;
1111
use Joomla\Github\Tests\Stub\ObjectMock;
1212
use Joomla\Http\Http;
13+
use Joomla\Http\Transport\Curl;
1314

1415
/**
1516
* Test class for Joomla\Github\Object.
@@ -42,7 +43,7 @@ protected function setUp()
4243
{
4344
parent::setUp();
4445

45-
$transport = $this->createMock('\Joomla\Http\TransportInterface');
46+
$transport = new Curl(array());
4647
$this->client = new Http(array(), $transport);
4748
$this->object = new ObjectMock($this->options, $this->client);
4849
}

0 commit comments

Comments
 (0)