diff --git a/README.md b/README.md index 946e03e..6ad6895 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ $config = array( 'ShopUrl' => 'yourshop.myshopify.com', 'ApiKey' => '***YOUR-PRIVATE-API-KEY***', 'Password' => '***YOUR-PRIVATE-API-PASSWORD***', + 'AccessToken' => '***YOUR-PRIVATE-API-PASSWORD***', // optional but needed if you want to use graphql ); PHPShopify\ShopifySDK::config($config); diff --git a/tests/GraphQLTest.php b/tests/GraphQLTest.php new file mode 100644 index 0000000..fcc12c4 --- /dev/null +++ b/tests/GraphQLTest.php @@ -0,0 +1,39 @@ +GraphQL->post($graphQL); + + $this->assertNotEmpty($return['data']['shop']); + } + + +} diff --git a/tests/TestResource.php b/tests/TestResource.php index 1c9a268..3fd3b2d 100644 --- a/tests/TestResource.php +++ b/tests/TestResource.php @@ -23,6 +23,7 @@ public static function setUpBeforeClass() 'ShopUrl' => getenv('SHOPIFY_SHOP_URL'), //Your shop URL 'ApiKey' => getenv('SHOPIFY_API_KEY'), //Your Private API Key 'Password' => getenv('SHOPIFY_API_PASSWORD'), //Your Private API Password + 'AccessToken' => getenv('SHOPIFY_API_PASSWORD'), //Your Access Token(Private API Password) ); self::$shopify = ShopifySDK::config($config);