Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function testNodeContext() { |
||
19 | $nodeId = Node::create([ |
||
20 | 'title' => 'Test', |
||
21 | 'type' => 'test', |
||
22 | ])->save(); |
||
23 | |||
24 | $query = <<<GQL |
||
25 | query (\$path: String!) { |
||
26 | route(path: \$path) { |
||
27 | ... on InternalUrl { |
||
28 | nodeContext { |
||
29 | entityLabel |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 | } |
||
34 | GQL; |
||
35 | |||
36 | $this->query($query, ['path' => '/node/' . $nodeId]); |
||
37 | } |
||
38 | |||
40 |