Skip to content

Commit 4ff10df

Browse files
committed
Fix error on tests
1 parent 61df59f commit 4ff10df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/Clients/FakeClient.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct()
4343
$this->guzzle = new Client(['handler' => $this->handler]);
4444
}
4545

46-
public function get($endpoint)
46+
public function get($endpoint, $query = [])
4747
{
4848
$request = new Request('GET',$this->buildUri($endpoint), $this->buildHeaders());
4949

@@ -52,27 +52,27 @@ public function get($endpoint)
5252
return $this->handle($response);
5353
}
5454

55-
public function post($endpoint, $data)
55+
public function post($endpoint, $data, $query = [])
5656
{
5757

5858
}
5959

60-
public function put($endpoint, $data)
60+
public function put($endpoint, $data, $query = [])
6161
{
6262

6363
}
6464

65-
public function patch($endpoint, $data)
65+
public function patch($endpoint, $data, $query = [])
6666
{
6767

6868
}
6969

70-
public function delete($endpoint)
70+
public function delete($endpoint, $query = [])
7171
{
7272

7373
}
7474

75-
protected function buildUri($endpoint, $options = [])
75+
protected function buildUri($endpoint, $options = [], $query = [])
7676
{
7777
return 'http://example.com/' . ltrim($endpoint, '/') . '.json?' . http_build_query($options, '', '&');
7878
}

0 commit comments

Comments
 (0)