@@ -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 | { |
@@ -27,6 +27,10 @@ |
||
| 27 | 27 | return $data; |
| 28 | 28 | } |
| 29 | 29 | /*Verifico che l'elenco dei workspace si possa scaricare correttamente*/ |
| 30 | + |
|
| 31 | + /** |
|
| 32 | + * @return string |
|
| 33 | + */ |
|
| 30 | 34 | public function testGetWorkspaceList(){ |
| 31 | 35 | $schema = __DIR__.'/../../../../api/schemas/workspaceList.json'; |
| 32 | 36 | |
@@ -33,6 +33,9 @@ |
||
| 33 | 33 | return $client; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | + /** |
|
| 37 | + * @param string $schema |
|
| 38 | + */ |
|
| 36 | 39 | public function askValidation($data, $schema) |
| 37 | 40 | { |
| 38 | 41 | $validator = new \JsonSchema\Validator; |
@@ -2,11 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Tests; |
| 4 | 4 | |
| 5 | -use JsonSchema\Constraints\Constraint; |
|
| 6 | -use JsonSchema\SchemaStorage; |
|
| 7 | -use JsonSchema\Uri\UriResolver; |
|
| 8 | 5 | use JsonSchema\Validator; |
| 9 | -use Prophecy\Argument; |
|
| 10 | 6 | |
| 11 | 7 | trait AbstractAppTest |
| 12 | 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; |