The redundant function "fetchfull" is removed

This commit is contained in:
Michael 2024-09-04 17:04:45 +00:00
parent 9bf5b27362
commit 22828388c0
6 changed files with 25 additions and 43 deletions

View file

@ -353,11 +353,11 @@ class InstallerTest extends MockedTest
// Mocking the CURL Request
$networkMock = Mockery::mock(ICanSendHttpRequests::class);
$networkMock
->shouldReceive('fetchFull')
->shouldReceive('get')
->with('https://test/install/testrewrite')
->andReturn($IHTTPResult);
$networkMock
->shouldReceive('fetchFull')
->shouldReceive('get')
->with('http://test/install/testrewrite')
->andReturn($IHTTPResult);
@ -400,11 +400,11 @@ class InstallerTest extends MockedTest
// Mocking the CURL Request
$networkMock = Mockery::mock(ICanSendHttpRequests::class);
$networkMock
->shouldReceive('fetchFull')
->shouldReceive('get')
->with('https://test/install/testrewrite')
->andReturn($IHTTPResultF);
$networkMock
->shouldReceive('fetchFull')
->shouldReceive('get')
->with('http://test/install/testrewrite')
->andReturn($IHTTPResultW);