@@ -138,7 +138,7 @@ |
||
138 | 138 | /** |
139 | 139 | * @return array |
140 | 140 | */ |
141 | - public function provideColumnsAndSearchAndCount(){ |
|
141 | + public function provideColumnsAndSearchAndCount() { |
|
142 | 142 | |
143 | 143 | $configuration = new PaginateFinderConfiguration(); |
144 | 144 | $configuration->setPaginateConfiguration(null, 0, 100, array('label' => 'labels')); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function testApi($url, $method = 'GET') |
21 | 21 | { |
22 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
22 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
23 | 23 | |
24 | 24 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
25 | 25 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | public function testEditForm() |
30 | 30 | { |
31 | 31 | $user = $this->client->getContainer()->get('open_orchestra_user.repository.user')->findOneByUsername('p-admin'); |
32 | - $this->client->request('GET', '/admin/user/form/' . $user->getId()); |
|
32 | + $this->client->request('GET', '/admin/user/form/'.$user->getId()); |
|
33 | 33 | $this->assertEquals(403, $this->client->getResponse()->getStatusCode()); |
34 | 34 | } |
35 | 35 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function testApi($url, $method = 'GET') |
24 | 24 | { |
25 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
25 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
26 | 26 | |
27 | 27 | $this->assertEquals(403, $this->client->getResponse()->getStatusCode()); |
28 | 28 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function testApi($url, $method = 'GET') |
21 | 21 | { |
22 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
22 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
23 | 23 | |
24 | 24 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
25 | 25 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $status = $this->statusRepository->findOneByInitial(); |
33 | 33 | |
34 | - $this->client->request('DELETE', '/api/status/' . $status->getId() . '/delete'); |
|
34 | + $this->client->request('DELETE', '/api/status/'.$status->getId().'/delete'); |
|
35 | 35 | |
36 | 36 | $this->assertSame(403, $this->client->getResponse()->getStatusCode()); |
37 | 37 | $this->assertContains('open_orchestra_workflow_admin.status.delete.impossible', $this->client->getResponse()->getContent()); |
@@ -56,16 +56,16 @@ |
||
56 | 56 | 'user_name' => 'extra.user_name', |
57 | 57 | 'message' => 'message' |
58 | 58 | ); |
59 | - $conf1 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array( |
|
59 | + $conf1 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array( |
|
60 | 60 | 'site_id' => 'fixture' |
61 | 61 | )); |
62 | - $conf2 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array( |
|
62 | + $conf2 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array( |
|
63 | 63 | 'site_id' => 'fixture', 'date' => '2016/02/10', 'date-format' => 'yy/mm/dd' |
64 | 64 | )); |
65 | - $conf3 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array( |
|
65 | + $conf3 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array( |
|
66 | 66 | 'site_id' => 'fixture', 'user_ip' => '5' |
67 | 67 | )); |
68 | - $conf4 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array( |
|
68 | + $conf4 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array( |
|
69 | 69 | 'site_id' => 'fixture', 'user_name' => 'developer' |
70 | 70 | )); |
71 | 71 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function testApi($url) |
20 | 20 | { |
21 | - $this->client->request('GET', $url . '?access_token=' . $this->getAccessToken()); |
|
21 | + $this->client->request('GET', $url.'?access_token='.$this->getAccessToken()); |
|
22 | 22 | |
23 | 23 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
24 | 24 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $tokenReponse = json_decode($this->client->getResponse()->getContent(), true); |
37 | 37 | $refreshToken = $tokenReponse['refresh_token']; |
38 | 38 | |
39 | - $this->client->request('GET', '/oauth/access_token?grant_type=refresh_token&refresh_token=' . $refreshToken, array(), array(), array('PHP_AUTH_USER' => 'test_key', 'PHP_AUTH_PW' => 'test_secret')); |
|
39 | + $this->client->request('GET', '/oauth/access_token?grant_type=refresh_token&refresh_token='.$refreshToken, array(), array(), array('PHP_AUTH_USER' => 'test_key', 'PHP_AUTH_PW' => 'test_secret')); |
|
40 | 40 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
41 | 41 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
42 | 42 | } |