We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7233f96 commit 65f64f1Copy full SHA for 65f64f1
tests/GraphQLTest.php
@@ -0,0 +1,39 @@
1
+<?php
2
+
3
+namespace PHPShopify;
4
5
+class GraphQLTest extends TestResource
6
+{
7
+ /**
8
+ * GraphQLTest constructor.
9
+ */
10
+ public function __construct()
11
+ {
12
+ parent::__construct();
13
+ }
14
15
16
17
+ * GraphQL Query Test
18
19
+ public function testQuery()
20
21
+ $graphQL = <<<Query
22
+ query {
23
+ shop {
24
+ name
25
+ primaryDomain {
26
+ url
27
+ host
28
29
30
31
+ Query;
32
33
+ $return = static::$shopify->GraphQL->post($graphQL);
34
35
+ $this->assertNotEmpty($return['data']['shop']);
36
37
38
39
+}
0 commit comments