Skip to content

Commit 56a4ab6

Browse files
committed
minor tweaks
1 parent 8f36bee commit 56a4ab6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

phpunit.xml.dist

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
</whitelist>
2121
</filter>
2222
<php>
23-
<env name="SHOPIFY_API_KEY" value="shopify.api.key.goes.here" />
24-
<env name="SHOPIFY_PASSWORD" value="shopify.password.goes.here" />
23+
<env name="SHOPIFY_ACCESS_TOKEN" value="shopify.access_token.goes.here" />
2524
<env name="SHOPIFY_DOMAIN" value="shopify-domain.goes.here" />
2625
<env name="SHOPIFY_API_VERSION" value="2019-07" />
2726
<env name="SHOPIFY_WEBHOOK_SECRET" value="secret" />

src/Shopify.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ class Shopify
5050
use ManagesStoreProperties;
5151
use TransformsResources;
5252

53-
protected string $apiKey;
54-
protected string $password;
53+
protected string $accessToken;
5554
protected string $domain;
5655
protected string $apiVersion;
5756

tests/ShopifyTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function it_updates_credentials_and_resets_client()
4141

4242
$clientA = $shopify->getHttpClient();
4343

44-
$shopify = $shopify->withCredentials('1234', '1234', '1234', '2021-01');
44+
$shopify = $shopify->withCredentials('1234', '1234', '2021-01');
4545

4646
$clientB = $shopify->getHttpClient();
4747

0 commit comments

Comments
 (0)