use Friendica\Core\Config\Cache;
use Friendica\DI;
use Friendica\Network\IHTTPResult;
-use Friendica\Network\IHTTPRequest;
+use Friendica\Network\IHTTPClient;
use Friendica\Test\MockedTest;
use Friendica\Test\Util\VFSTrait;
use Mockery;
->andReturn('test Error');
// Mocking the CURL Request
- $networkMock = Mockery::mock(IHTTPRequest::class);
+ $networkMock = Mockery::mock(IHTTPClient::class);
$networkMock
->shouldReceive('fetchFull')
->with('https://test/install/testrewrite')
->andReturn($IHTTPResult);
$this->dice->shouldReceive('create')
- ->with(IHTTPRequest::class)
+ ->with(IHTTPClient::class)
->andReturn($networkMock);
DI::init($this->dice);
->andReturn('204');
// Mocking the CURL Request
- $networkMock = Mockery::mock(IHTTPRequest::class);
+ $networkMock = Mockery::mock(IHTTPClient::class);
$networkMock
->shouldReceive('fetchFull')
->with('https://test/install/testrewrite')
->andReturn($IHTTPResultW);
$this->dice->shouldReceive('create')
- ->with(IHTTPRequest::class)
+ ->with(IHTTPClient::class)
->andReturn($networkMock);
DI::init($this->dice);