Example #1
0
 public function testGetRequest()
 {
     $this->assertEquals($this->shopUri, $this->api->getShopUri());
     $productUri = '/admin/product/632910392.json';
     $productResponse = $this->getProductResponse();
     $product = json_decode($productResponse);
     $this->httpClient->expects($this->once())->method('get')->with($this->shopUri . $productUri)->will($this->returnValue($productResponse));
     // retrieve a single product
     // @see http://docs.shopify.com/api/product#show
     $this->assertEquals($product, $this->api->get($productUri));
 }