@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Tests; |
4 | 4 | |
5 | 5 | use Silex\WebTestCase; |
6 | -use JsonSchema\Validator; |
|
7 | 6 | |
8 | 7 | class WorkspaceTest extends WebTestCase |
9 | 8 | { |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Tests; |
4 | 4 | |
5 | -use Silex\WebTestCase; |
|
6 | -use JsonSchema\Validator; |
|
7 | - |
|
8 | 5 | class PartTest extends WorkspaceTest |
9 | 6 | { |
10 | 7 | use AbstractAppTest; |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | $client = $this->createClient(); |
21 | 21 | $client = $this->logIn2($client); |
22 | 22 | $client->request( |
23 | - 'POST', |
|
24 | - '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin', |
|
25 | - [], |
|
26 | - [], |
|
27 | - ['CONTENT_TYPE' => 'application/json'], |
|
28 | - ''); |
|
23 | + 'POST', |
|
24 | + '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin', |
|
25 | + [], |
|
26 | + [], |
|
27 | + ['CONTENT_TYPE' => 'application/json'], |
|
28 | + ''); |
|
29 | 29 | $response = $client->getResponse(); |
30 | 30 | $data = $client->getResponse()->getContent(); |
31 | 31 | print_r("ROBAGROSSA"); |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | $client = $this->createClient(); |
49 | 49 | $client = $this->logIn2($client); |
50 | 50 | $client->request( |
51 | - 'DELETE', |
|
52 | - '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin', |
|
53 | - [], |
|
54 | - [], |
|
55 | - ['CONTENT_TYPE' => 'application/json'], |
|
56 | - ''); |
|
51 | + 'DELETE', |
|
52 | + '/api/v1/workspace/'.$id.'/part/'.$part_id.'/checkin', |
|
53 | + [], |
|
54 | + [], |
|
55 | + ['CONTENT_TYPE' => 'application/json'], |
|
56 | + ''); |
|
57 | 57 | $response = $client->getResponse(); |
58 | 58 | |
59 | 59 |
@@ -13,8 +13,6 @@ |
||
13 | 13 | use Silex\Provider\MonologServiceProvider; |
14 | 14 | use Ivoba\Silex\RedBeanServiceProvider; |
15 | 15 | use Silex\Provider\SessionServiceProvider; |
16 | -use Carbon\Carbon; |
|
17 | -use Monolog\Logger; |
|
18 | 16 | |
19 | 17 | // FIXME va messo nel php.ini |
20 | 18 | date_default_timezone_set('Europe/Rome'); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Tests; |
4 | 4 | |
5 | 5 | use Silex\WebTestCase; |
6 | -use JsonSchema\Validator; |
|
7 | 6 | |
8 | 7 | class WorkspaceTest extends WebTestCase |
9 | 8 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Tests; |
4 | 4 | |
5 | 5 | use Silex\WebTestCase; |
6 | -use Carbon\Carbon; |
|
7 | 6 | |
8 | 7 | class WorkspaceTest extends WebTestCase |
9 | 8 | { |