@@ -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()); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function testFindForPaginate(PaginateFinderConfiguration $configuration, $expectedCount, $expectedFilteredCount) |
42 | 42 | { |
43 | - $this->assertCount($expectedCount, $this->repository->findForPaginate($configuration)); |
|
43 | + $this->assertCount($expectedCount, $this->repository->findForPaginate($configuration)); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -96,6 +96,6 @@ discard block |
||
96 | 96 | */ |
97 | 97 | public function testCountWithFilter(PaginateFinderConfiguration $configuration, $expectedCount, $expectedFilteredCount) |
98 | 98 | { |
99 | - $this->assertSame($expectedFilteredCount, $this->repository->countWithFilter($configuration)); |
|
99 | + $this->assertSame($expectedFilteredCount, $this->repository->countWithFilter($configuration)); |
|
100 | + } |
|
100 | 101 | } |
101 | - } |
@@ -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 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $mediaFolderRepository = static::$kernel->getContainer()->get('open_orchestra_media.repository.media_folder'); |
49 | 49 | $mediaFolder = $mediaFolderRepository->findOneByName('Images'); |
50 | 50 | |
51 | - $url = '/admin/folder/form/' . $mediaFolder->getId(); |
|
51 | + $url = '/admin/folder/form/'.$mediaFolder->getId(); |
|
52 | 52 | $crawler = $this->client->request('GET', $url); |
53 | 53 | |
54 | 54 | return $crawler; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function testDifferentEnv($classExpected, $env, $debug) |
22 | 22 | { |
23 | - $kernel = static::createKernel(array('environment' => $env ,'debug' => $debug)); |
|
23 | + $kernel = static::createKernel(array('environment' => $env, 'debug' => $debug)); |
|
24 | 24 | $kernel->boot(); |
25 | 25 | $this->assertInstanceOf( |
26 | 26 | $classExpected, |
@@ -34,16 +34,16 @@ |
||
34 | 34 | */ |
35 | 35 | public function testFormController() |
36 | 36 | { |
37 | - $contentTypes = $this->contentTypeRepository->findAll(); |
|
38 | - $contentTypeCount = count($contentTypes); |
|
37 | + $contentTypes = $this->contentTypeRepository->findAll(); |
|
38 | + $contentTypeCount = count($contentTypes); |
|
39 | 39 | |
40 | - $crawler = $this->client->request('GET', '/admin/content-type/form/news'); |
|
41 | - $form = $crawler->selectButton('Save')->form(); |
|
40 | + $crawler = $this->client->request('GET', '/admin/content-type/form/news'); |
|
41 | + $form = $crawler->selectButton('Save')->form(); |
|
42 | 42 | |
43 | - $this->submitForm($form); |
|
43 | + $this->submitForm($form); |
|
44 | 44 | |
45 | - $contentTypes = $this->contentTypeRepository->findAll(); |
|
46 | - $this->assertCount($contentTypeCount + 1, $contentTypes); |
|
45 | + $contentTypes = $this->contentTypeRepository->findAll(); |
|
46 | + $this->assertCount($contentTypeCount + 1, $contentTypes); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | $nodeDocument = $this->nodeRepository->findInLastVersion($nodeId, $this->language, $this->siteId); |
42 | 42 | |
43 | - $url = '/admin/node/form/' . $this->siteId . '/' . $nodeDocument->getNodeId() . '/' . $this->language . '/' . $nodeDocument->getVersion(); |
|
43 | + $url = '/admin/node/form/'.$this->siteId.'/'.$nodeDocument->getNodeId().'/'.$this->language.'/'.$nodeDocument->getVersion(); |
|
44 | 44 | |
45 | 45 | $crawler = $this->client->request('GET', $url); |
46 | 46 | $formNode = $crawler->selectButton('Save')->form(); |
@@ -114,9 +114,9 @@ |
||
114 | 114 | */ |
115 | 115 | protected function assertNodeCount($count, $language) |
116 | 116 | { |
117 | - $nodes = $this->nodeRepository->findNotDeletedSortByUpdatedAt(NodeInterface::ROOT_NODE_ID, $language, $this->siteId); |
|
117 | + $nodes = $this->nodeRepository->findNotDeletedSortByUpdatedAt(NodeInterface::ROOT_NODE_ID, $language, $this->siteId); |
|
118 | 118 | |
119 | - $this->assertCount($count, $nodes); |
|
119 | + $this->assertCount($count, $nodes); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -53,12 +53,12 @@ discard block |
||
53 | 53 | $this->assertNodeCount(1, 'fr'); |
54 | 54 | $this->assertNodeCount(0, 'en'); |
55 | 55 | |
56 | - $crawler = $this->client->request('GET', '/admin/site/form/' . $this->siteId); |
|
56 | + $crawler = $this->client->request('GET', '/admin/site/form/'.$this->siteId); |
|
57 | 57 | $form = $crawler->selectButton('Save')->form(); |
58 | 58 | |
59 | 59 | $values = $form->getPhpValues(); |
60 | 60 | |
61 | - $values['oo_site']['aliases'][1]['domain'] = $this->siteId . 'name'; |
|
61 | + $values['oo_site']['aliases'][1]['domain'] = $this->siteId.'name'; |
|
62 | 62 | $values['oo_site']['aliases'][1]['language'] = 'en'; |
63 | 63 | $values['oo_site']['aliases'][1]['main'] = false; |
64 | 64 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->assertNodeCount(1, 'fr'); |
68 | 68 | $this->assertNodeCount(1, 'en'); |
69 | 69 | |
70 | - $this->client->request('DELETE', '/api/site/' . $this->siteId . '/delete'); |
|
70 | + $this->client->request('DELETE', '/api/site/'.$this->siteId.'/delete'); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | $this->assertSiteCount(1, $this->siteId); |
87 | 87 | |
88 | - $this->client->request('DELETE', '/api/site/' . $this->siteId . '/delete'); |
|
88 | + $this->client->request('DELETE', '/api/site/'.$this->siteId.'/delete'); |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
@@ -93,17 +93,17 @@ discard block |
||
93 | 93 | */ |
94 | 94 | protected function createSite() |
95 | 95 | { |
96 | - $crawler = $this->client->request('GET', '/admin/site/new'); |
|
96 | + $crawler = $this->client->request('GET', '/admin/site/new'); |
|
97 | 97 | |
98 | 98 | $form = $crawler->selectButton('Save')->form(); |
99 | 99 | |
100 | 100 | $form['oo_site[siteId]'] = $this->siteId; |
101 | - $form['oo_site[name]'] = $this->siteId . 'domain'; |
|
102 | - $form['oo_site[metaAuthor]'] = $this->siteId . ' Author'; |
|
101 | + $form['oo_site[name]'] = $this->siteId.'domain'; |
|
102 | + $form['oo_site[metaAuthor]'] = $this->siteId.' Author'; |
|
103 | 103 | |
104 | 104 | $values = $form->getPhpValues(); |
105 | 105 | |
106 | - $values['oo_site']['aliases'][0]['domain'] = $this->siteId . 'name'; |
|
106 | + $values['oo_site']['aliases'][0]['domain'] = $this->siteId.'name'; |
|
107 | 107 | $values['oo_site']['aliases'][0]['language'] = 'fr'; |
108 | 108 | $values['oo_site']['aliases'][0]['main'] = true; |
109 | 109 |