Ejemplo n.º 1
0
 public function testShopGetInfo()
 {
     $response = $this->client->get('shop');
     $this->assertObjectHasAttribute('shop', $response);
     $shop = $response->shop;
     $this->assertObjectHasAttribute('domain', $shop);
     $this->assertObjectHasAttribute('myshopify_domain', $shop);
     $this->assertObjectHasAttribute('email', $shop);
     $this->assertObjectHasAttribute('name', $shop);
     $this->assertNotEmpty($shop->domain);
     $this->assertNotEmpty($shop->myshopify_domain);
     $this->assertNotEmpty($shop->email);
     $this->assertNotEmpty($shop->name);
 }