Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | public function testQuery() |
||
6 | { |
||
7 | $params = ['site' => 'unittest']; |
||
8 | $body = '{"query":"query {\n findProduct(code: \"CNC\") {\n id\n code\n }\n}\n","variables":{},"operationName":null}'; |
||
9 | $response = $this->action( 'POST', '\Aimeos\Shop\Controller\GraphqlController@indexAction', $params, [], [], [], [], $body ); |
||
10 | |||
11 | $json = json_decode( $response->getContent(), true ); |
||
12 | |||
13 | $this->assertResponseOk(); |
||
14 | $this->assertNotNull( $json ); |
||
15 | } |
||
17 |