Commit 9ffd16c9 authored by Patrick Barroca's avatar Patrick Barroca 😁
Browse files

fix http mocking

parent bbd866a6
Pipeline #10317 passed with stage
in 45 seconds
......@@ -7,6 +7,7 @@ use Pellicule\Models\Record;
use Pellicule\Models\Media;
use Pellicule\Providers\Electre;
use Pellicule\Providers\Orb;
use Pellicule\FileSystem;
......@@ -18,9 +19,12 @@ class FileSystemTest extends TestCase {
Media::setFileSystem(null);
$this->_http_client
->whenCalled('get')
->whenCalled('sendRequest')
->answers($this->_forgePSR7Response(['content' => file_get_contents(realpath(dirname(__FILE__)) . '/' .'imagefullsize.jpg')]));
FileSystem::setDefaultHttpClient($this->_http_client);
$this->fixture(Record::class,
['id' => 1,
'isbn' => '2259228194',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment