| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testPostWorkspaceCheck(){ |
||
| 14 | $blob = $this->testPostWorkspacePart(); |
||
| 15 | $id = $blob[0]; |
||
| 16 | $part_id= $blob[1]; |
||
| 17 | |||
| 18 | print_r("FANFARA!"); |
||
| 19 | var_dump($blob); |
||
|
|
|||
| 20 | $client = $this->createClient(); |
||
| 21 | $client = $this->logIn2($client); |
||
| 22 | $client->request( |
||
| 23 | 'POST', |
||
| 24 | '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin', |
||
| 25 | [], |
||
| 26 | [], |
||
| 27 | ['CONTENT_TYPE' => 'application/json'], |
||
| 28 | ''); |
||
| 29 | $response = $client->getResponse(); |
||
| 30 | $data = $client->getResponse()->getContent(); |
||
| 31 | print_r("ROBAGROSSA"); |
||
| 32 | var_dump($data); |
||
| 33 | $js = json_decode($data); |
||
| 34 | $points = $js->points; |
||
| 35 | |||
| 36 | $this->assertTrue(is_numeric($points)); //TODO verificare che il numero sia adeguato ai punti attesi |
||
| 37 | |||
| 38 | return [$id,$part_id]; |
||
| 39 | } |
||
| 40 | |||
| 65 |