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