File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ function it_adds_path(
37
37
$ host ->getPath ()->shouldBeCalled ()->willReturn ('/api ' );
38
38
39
39
$ request ->getUri ()->shouldBeCalled ()->willReturn ($ uri );
40
- $ request ->withUri ($ uri )->shouldBeCalled ( )->willReturn ($ request );
40
+ $ request ->withUri ($ uri )->shouldBeCalledTimes ( 1 )->willReturn ($ request );
41
41
42
- $ uri ->withPath ('/api/users ' )->shouldBeCalled ( )->willReturn ($ uri );
42
+ $ uri ->withPath ('/api/users ' )->shouldBeCalledTimes ( 1 )->willReturn ($ uri );
43
43
$ uri ->getPath ()->shouldBeCalled ()->willReturn ('/users ' );
44
44
$ uri ->__toString ()->shouldBeCalled ()->willReturn ('https://example.com/api/users ' );
45
45
46
46
$ this ->beConstructedWith ($ host );
47
47
$ this ->handleRequest ($ request , function () {}, function () {});
48
+
49
+ // Make sure we dont rewrite the request a second time
50
+ $ this ->handleRequest ($ request , function () {}, function () {});
48
51
}
49
52
50
53
function it_removes_ending_slashes (
You can’t perform that action at this time.
0 commit comments