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