Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
afi
Pellicule
Commits
9ffd16c9
Commit
9ffd16c9
authored
Jun 11, 2020
by
Patrick Barroca
😁
Browse files
fix http mocking
parent
bbd866a6
Pipeline
#10317
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/FileSystemTest.php
tests/FileSystemTest.php
+5
-1
No files found.
tests/FileSystemTest.php
View file @
9ffd16c9
...
...
@@ -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
(
'
ge
t'
)
->
whenCalled
(
'
sendReques
t'
)
->
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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment