Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testEntityRouting($kernel) |
||
15 | { |
||
16 | self::createAndBootKernel($kernel); |
||
17 | self::configureDb(); |
||
18 | |||
19 | $this->doRequest('/api/entity/my-entity/create', 'POST', ['data' => ['publicApiField' => 'my-value']]); |
||
20 | $this->doRequest('/api/entity/my-entity/get', 'GET', ['identifier' => 1]); |
||
21 | $this->doRequest( |
||
22 | '/api/entity/my-entity/update', |
||
23 | 'POST', |
||
24 | [ |
||
25 | 'identifier' => 1, |
||
26 | 'data' => [ |
||
27 | 'publicApiField' => 'my-updated-value', |
||
28 | 'parent' => null, |
||
29 | ], |
||
30 | ] |
||
31 | ); |
||
32 | |||
33 | $this->doRequest('/api/entity/my-entity/search', 'GET', ['criteria' => ['id' => 1]]); |
||
34 | $this->doRequest('/api/entity/my-entity/count', 'GET', ['criteria' => ['id' => 1]]); |
||
35 | $this->doRequest('/api/entity/my-entity/delete', 'POST', ['identifier' => 1]); |
||
36 | } |
||
37 | |||
44 |