Example #1
0
 public function testPostJsonAllowsPassingExtraParamsToWpHttpPost()
 {
     $this->wpHttp->post('uri', ['headers' => ['Accept' => 'application/json', 'Content-Type' => 'application/json'], 'body' => json_encode(['foo' => 'bar']), 'jim' => 'jam'])->shouldBeCalled();
     $this->request->postJson('uri', ['foo' => 'bar'], ['jim' => 'jam']);
 }