@@ 12-25 (lines=14) @@ | ||
9 | { |
|
10 | use AbstractAppTest; |
|
11 | ||
12 | public function testGetWorkSpace(){ |
|
13 | $schema = __DIR__.'/../../../../api/schemas/workspace.json'; |
|
14 | ||
15 | $client = $this->createClient(); |
|
16 | $client = $this->logIn($client); |
|
17 | ||
18 | $crawler = $client->request('GET', '/api/v1/workspace/1'); |
|
19 | $response = $client->getResponse(); |
|
20 | $data = $client->getResponse()->getContent(); |
|
21 | $validator = $this->askValidation($data,$schema); |
|
22 | ||
23 | $assert = $this->evalValidation($validator); |
|
24 | $this->assertTrue($assert); |
|
25 | } |
|
26 | public function testGetWorkspaceList(){ |
|
27 | $schema = __DIR__.'/../../../../api/schemas/workspaceList.json'; |
|
28 | ||
@@ 26-40 (lines=15) @@ | ||
23 | $assert = $this->evalValidation($validator); |
|
24 | $this->assertTrue($assert); |
|
25 | } |
|
26 | public function testGetWorkspaceList(){ |
|
27 | $schema = __DIR__.'/../../../../api/schemas/workspaceList.json'; |
|
28 | ||
29 | $client = $this->createClient(); |
|
30 | $client = $this->logIn($client); |
|
31 | ||
32 | $crawler = $client->request('GET', '/api/v1/workspace/'); |
|
33 | $response = $client->getResponse(); |
|
34 | ||
35 | $data = $client->getResponse()->getContent(); |
|
36 | $validator = $this->askValidation($data,$schema); |
|
37 | ||
38 | $assert = $this->evalValidation($validator); |
|
39 | $this->assertTrue($assert); |
|
40 | } |
|
41 | ||
42 | public function testGetWorkspaceShare(){ |
|
43 | $schema = __DIR__.'/../../../../api/schemas/workspaceShare.json'; |
|
@@ 42-57 (lines=16) @@ | ||
39 | $this->assertTrue($assert); |
|
40 | } |
|
41 | ||
42 | public function testGetWorkspaceShare(){ |
|
43 | $schema = __DIR__.'/../../../../api/schemas/workspaceShare.json'; |
|
44 | ||
45 | $client = $this->createClient(); |
|
46 | $client = $this->logIn($client); |
|
47 | ||
48 | $crawler = $client->request('GET', '/api/v1/workspace/1/share'); |
|
49 | $response = $client->getResponse(); |
|
50 | ||
51 | //print_r($response); |
|
52 | $data = $client->getResponse()->getContent(); |
|
53 | $validator = $this->askValidation($data,$schema); |
|
54 | ||
55 | $assert = $this->evalValidation($validator); |
|
56 | $this->assertTrue($assert); |
|
57 | } |
|
58 | public function testGetWorkspacePart(){ |
|
59 | $schema = __DIR__.'/../../../../api/schemas/part.json'; |
|
60 | ||
@@ 58-73 (lines=16) @@ | ||
55 | $assert = $this->evalValidation($validator); |
|
56 | $this->assertTrue($assert); |
|
57 | } |
|
58 | public function testGetWorkspacePart(){ |
|
59 | $schema = __DIR__.'/../../../../api/schemas/part.json'; |
|
60 | ||
61 | $client = $this->createClient(); |
|
62 | $client = $this->logIn($client); |
|
63 | ||
64 | $crawler = $client->request('GET', '/api/v1/workspace/6/part/1'); |
|
65 | $response = $client->getResponse(); |
|
66 | ||
67 | //print_r($response); |
|
68 | $data = $client->getResponse()->getContent(); |
|
69 | $validator = $this->askValidation($data,$schema); |
|
70 | ||
71 | $assert = $this->evalValidation($validator); |
|
72 | $this->assertTrue($assert); |
|
73 | } |
|
74 | ||
75 | public function testPostWorkspace(){ |
|
76 | //$schema = __DIR__.'/../../../../api/schemas/workspace.json'; |