@@ -50,12 +50,12 @@ public function itCanGetAll()
5050
5151 $ client ->expects ($ this ->once ())
5252 ->method ('get ' )
53- ->with ('mocks?foo=bar ' )
53+ ->with ('mocks?foo=bar ' , [ ' Test-Header ' => ' Foo-Bar ' ] )
5454 ->willReturn ($ document );
5555
5656 $ repository = new MockRepository ($ client , new DocumentFactory ());
5757
58- $ this ->assertSame ($ document , $ repository ->all (['foo ' => 'bar ' ]));
58+ $ this ->assertSame ($ document , $ repository ->all (['foo ' => 'bar ' ], [ ' Test-Header ' => ' Foo-Bar ' ] ));
5959 }
6060
6161 /**
@@ -70,12 +70,12 @@ public function itCanTakeOne()
7070
7171 $ client ->expects ($ this ->once ())
7272 ->method ('get ' )
73- ->with ('mocks?foo=bar ' )
73+ ->with ('mocks?foo=bar ' , [ ' Test-Header ' => ' Foo-Bar ' ] )
7474 ->willReturn ($ document );
7575
7676 $ repository = new MockRepository ($ client , new DocumentFactory ());
7777
78- $ this ->assertSame ($ document , $ repository ->take (['foo ' => 'bar ' ]));
78+ $ this ->assertSame ($ document , $ repository ->take (['foo ' => 'bar ' ], [ ' Test-Header ' => ' Foo-Bar ' ] ));
7979 }
8080
8181 /**
@@ -90,12 +90,12 @@ public function itCanFindOne()
9090
9191 $ client ->expects ($ this ->once ())
9292 ->method ('get ' )
93- ->with ('mocks/1?foo=bar ' )
93+ ->with ('mocks/1?foo=bar ' , [ ' Test-Header ' => ' Foo-Bar ' ] )
9494 ->willReturn ($ document );
9595
9696 $ repository = new MockRepository ($ client , new DocumentFactory ());
9797
98- $ this ->assertSame ($ document , $ repository ->find ('1 ' , ['foo ' => 'bar ' ]));
98+ $ this ->assertSame ($ document , $ repository ->find ('1 ' , ['foo ' => 'bar ' ], [ ' Test-Header ' => ' Foo-Bar ' ] ));
9999 }
100100
101101 /**
@@ -111,12 +111,12 @@ public function itCanSaveNew()
111111
112112 $ client ->expects ($ this ->once ())
113113 ->method ('post ' )
114- ->with ('mocks?foo=bar ' )
114+ ->with ('mocks?foo=bar ' , $ document , [ ' Test-Header ' => ' Foo-Bar ' ] )
115115 ->willReturn ($ document );
116116
117117 $ repository = new MockRepository ($ client , new DocumentFactory ());
118118
119- $ this ->assertSame ($ document , $ repository ->save (new Item (), ['foo ' => 'bar ' ]));
119+ $ this ->assertSame ($ document , $ repository ->save (new Item (), ['foo ' => 'bar ' ], [ ' Test-Header ' => ' Foo-Bar ' ] ));
120120 }
121121
122122 /**
@@ -132,12 +132,12 @@ public function itCanSaveExisting()
132132
133133 $ client ->expects ($ this ->once ())
134134 ->method ('patch ' )
135- ->with ('mocks/1?foo=bar ' )
135+ ->with ('mocks/1?foo=bar ' , $ document , [ ' Test-Header ' => ' Foo-Bar ' ] )
136136 ->willReturn ($ document );
137137
138138 $ repository = new MockRepository ($ client , new DocumentFactory ());
139139
140- $ this ->assertSame ($ document , $ repository ->save ((new Item ())->setId ('1 ' ), ['foo ' => 'bar ' ]));
140+ $ this ->assertSame ($ document , $ repository ->save ((new Item ())->setId ('1 ' ), ['foo ' => 'bar ' ], [ ' Test-Header ' => ' Foo-Bar ' ] ));
141141 }
142142
143143 /**
@@ -152,11 +152,11 @@ public function itCanDelete()
152152
153153 $ client ->expects ($ this ->once ())
154154 ->method ('delete ' )
155- ->with ('mocks/1?foo=bar ' )
155+ ->with ('mocks/1?foo=bar ' , [ ' Test-Header ' => ' Foo-Bar ' ] )
156156 ->willReturn ($ document );
157157
158158 $ repository = new MockRepository ($ client , new DocumentFactory ());
159159
160- $ this ->assertSame ($ document , $ repository ->delete ('1 ' , ['foo ' => 'bar ' ]));
160+ $ this ->assertSame ($ document , $ repository ->delete ('1 ' , ['foo ' => 'bar ' ], [ ' Test-Header ' => ' Foo-Bar ' ] ));
161161 }
162162}
0 commit comments