public function setUp() { $this->shopName = 'mycoolshop'; $this->clientSecret = 'ABC123XYZ'; $this->accessToken = '0987654321'; $this->shopUri = "https://{$this->shopName}.myshopify.com"; $this->httpClient = $this->getMock('Shopify\\HttpClient'); $this->api = new \Shopify\Api\Client($this->httpClient); $this->api->setShopName($this->shopName); $this->api->setClientSecret($this->clientSecret); $this->api->setAccessToken($this->accessToken); }