public function testInstance() { $post = new Cancellations($this->transport); $this->assertEquals([], $post->getParamWhiteList()); $this->assertEquals('POST', $post->getMethod()); $this->assertEquals('reports/cancellations/', $post->getURI()); }
/** * @return int */ public function cancellations() { $endpoint = new Cancellations($this->getTransport()); $resultRequest = $endpoint->performRequest(); return Response::extractId($resultRequest, '/reports/%d/'); }