public function info($pinId) { $requestOptions = ['id' => $pinId, 'field_set_key' => 'detailed']; return $this->execGetRequest($requestOptions, UrlBuilder::RESOURCE_PIN_INFO); }
public function testGetPinInfo() { $response = $this->createApiResponse(); $this->mock->expects($this->at(0))->method('exec')->willReturn($response); $this->mock->expects($this->at(1))->method('exec')->willReturn([]); $this->assertNotNull($this->provider->info(1)); $this->assertFalse($this->provider->info(1)); }