We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d643ea commit 8fd284cCopy full SHA for 8fd284c
1 file changed
tests/Databox/Tests/ClientTest.php
@@ -42,6 +42,18 @@ public function testRawPush()
42
$this->assertEquals($json, json_encode($client->rawPush()));
43
}
44
45
+ public function testRawGet()
46
+ {
47
+ $client = $this->getMockBuilder('Databox\Client')
48
+ ->setMethods(['get'])
49
+ ->getMock();
50
+
51
+ $json = '[]';
52
+ $response = new Response(200, [], $json);
53
+ $client->method('get')->willReturn($response);
54
+ $this->assertEquals($json, json_encode([]));
55
+ }
56
57
public function testLastPush()
58
{
59
$this->client->method('rawGet')->willReturn([
0 commit comments