@@ -45,21 +45,21 @@ discard block |
||
45 | 45 | $nodeRoot = $this->nodeRepository->findInLastVersion(NodeInterface::ROOT_NODE_ID, $this->language, $this->siteId); |
46 | 46 | $nodeFixtureCommunity = $this->nodeRepository->findInLastVersion('fixture_page_community', $this->language, $this->siteId); |
47 | 47 | |
48 | - $url = '/admin/node/form/' . $this->siteId . '/' . $nodeRoot->getNodeId(). '/' . $this->language . '/' . $nodeRoot->getVersion(); |
|
49 | - $this->client->request('GET', $url); |
|
50 | - $this->assertForm($this->client->getResponse()); |
|
48 | + $url = '/admin/node/form/' . $this->siteId . '/' . $nodeRoot->getNodeId(). '/' . $this->language . '/' . $nodeRoot->getVersion(); |
|
49 | + $this->client->request('GET', $url); |
|
50 | + $this->assertForm($this->client->getResponse()); |
|
51 | 51 | |
52 | - $url = '/admin/node/new/' . $this->siteId . '/' . $this->language . '/' . $nodeRoot->getNodeId() . '/0'; |
|
53 | - $this->client->request('GET', $url); |
|
54 | - $this->assertForm($this->client->getResponse()); |
|
52 | + $url = '/admin/node/new/' . $this->siteId . '/' . $this->language . '/' . $nodeRoot->getNodeId() . '/0'; |
|
53 | + $this->client->request('GET', $url); |
|
54 | + $this->assertForm($this->client->getResponse()); |
|
55 | 55 | |
56 | - $url = '/admin/node/form/' . $this->siteId . '/' . $nodeFixtureCommunity->getNodeId(). '/' . $this->language . '/' . $nodeFixtureCommunity->getVersion(); |
|
57 | - $this->client->request('GET', $url); |
|
58 | - $this->assertForm($this->client->getResponse()); |
|
56 | + $url = '/admin/node/form/' . $this->siteId . '/' . $nodeFixtureCommunity->getNodeId(). '/' . $this->language . '/' . $nodeFixtureCommunity->getVersion(); |
|
57 | + $this->client->request('GET', $url); |
|
58 | + $this->assertForm($this->client->getResponse()); |
|
59 | 59 | |
60 | - $url = '/admin/node/new/' . $this->siteId . '/' . $this->language . '/' . $nodeRoot->getNodeId() . '/0'; |
|
61 | - $this->client->request('GET', $url); |
|
62 | - $this->assertForm($this->client->getResponse()); |
|
60 | + $url = '/admin/node/new/' . $this->siteId . '/' . $this->language . '/' . $nodeRoot->getNodeId() . '/0'; |
|
61 | + $this->client->request('GET', $url); |
|
62 | + $this->assertForm($this->client->getResponse()); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | $nodes = $this->nodeRepository->findByNodeId($nodeId); |
118 | 118 | foreach ($nodes as $node) { |
119 | 119 | $node->setStatus($autoUnpublishTo); |
120 | - } |
|
120 | + } |
|
121 | 121 | |
122 | 122 | $this->documentManager->flush(); |
123 | 123 |
@@ -45,19 +45,19 @@ discard block |
||
45 | 45 | $nodeRoot = $this->nodeRepository->findInLastVersion(NodeInterface::ROOT_NODE_ID, $this->language, $this->siteId); |
46 | 46 | $nodeFixtureCommunity = $this->nodeRepository->findInLastVersion('fixture_page_community', $this->language, $this->siteId); |
47 | 47 | |
48 | - $url = '/admin/node/form/' . $this->siteId . '/' . $nodeRoot->getNodeId(). '/' . $this->language . '/' . $nodeRoot->getVersion(); |
|
48 | + $url = '/admin/node/form/'.$this->siteId.'/'.$nodeRoot->getNodeId().'/'.$this->language.'/'.$nodeRoot->getVersion(); |
|
49 | 49 | $this->client->request('GET', $url); |
50 | 50 | $this->assertForm($this->client->getResponse()); |
51 | 51 | |
52 | - $url = '/admin/node/new/' . $this->siteId . '/' . $this->language . '/' . $nodeRoot->getNodeId() . '/0'; |
|
52 | + $url = '/admin/node/new/'.$this->siteId.'/'.$this->language.'/'.$nodeRoot->getNodeId().'/0'; |
|
53 | 53 | $this->client->request('GET', $url); |
54 | 54 | $this->assertForm($this->client->getResponse()); |
55 | 55 | |
56 | - $url = '/admin/node/form/' . $this->siteId . '/' . $nodeFixtureCommunity->getNodeId(). '/' . $this->language . '/' . $nodeFixtureCommunity->getVersion(); |
|
56 | + $url = '/admin/node/form/'.$this->siteId.'/'.$nodeFixtureCommunity->getNodeId().'/'.$this->language.'/'.$nodeFixtureCommunity->getVersion(); |
|
57 | 57 | $this->client->request('GET', $url); |
58 | 58 | $this->assertForm($this->client->getResponse()); |
59 | 59 | |
60 | - $url = '/admin/node/new/' . $this->siteId . '/' . $this->language . '/' . $nodeRoot->getNodeId() . '/0'; |
|
60 | + $url = '/admin/node/new/'.$this->siteId.'/'.$this->language.'/'.$nodeRoot->getNodeId().'/0'; |
|
61 | 61 | $this->client->request('GET', $url); |
62 | 62 | $this->assertForm($this->client->getResponse()); |
63 | 63 | } |
@@ -71,15 +71,15 @@ discard block |
||
71 | 71 | |
72 | 72 | $formNode = $crawler->selectButton('Save')->form(); |
73 | 73 | |
74 | - $nodeName = 'fixturetest' . time(); |
|
74 | + $nodeName = 'fixturetest'.time(); |
|
75 | 75 | $formNode['oo_node[name]'] = $nodeName; |
76 | 76 | $formNode['oo_node[nodeTemplateSelection][nodeSource]'] = 'root'; |
77 | - $formNode['oo_node[routePattern]'] = '/page-test' .time(); |
|
77 | + $formNode['oo_node[routePattern]'] = '/page-test'.time(); |
|
78 | 78 | |
79 | 79 | $this->submitForm($formNode); |
80 | 80 | |
81 | 81 | $node = static::$kernel->getContainer()->get('open_orchestra_model.repository.node')->findOneByName($nodeName); |
82 | - $this->client->request('GET', '/api/node/show/' . $node->getNodeId() . '/' . $node->getSiteId() . '/' . $node->getLanguage() . '/' . $node->getVersion()); |
|
82 | + $this->client->request('GET', '/api/node/show/'.$node->getNodeId().'/'.$node->getSiteId().'/'.$node->getLanguage().'/'.$node->getVersion()); |
|
83 | 83 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
84 | 84 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
85 | 85 | $node = json_decode($this->client->getResponse()->getContent()); |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | $this->changeNodeStatusWithRouteRedirectionTest($id, $statuses[2], $redirectionCount, $routeDocumentCount); |
101 | 101 | $this->changeNodeStatusWithRouteRedirectionTest($id, $statuses[1], $redirectionCount, $routeDocumentCount + 2); |
102 | 102 | |
103 | - $this->client->request('POST', '/api/node/new-version/' . $nodeId . '/fr/' . $node->version, array()); |
|
103 | + $this->client->request('POST', '/api/node/new-version/'.$nodeId.'/fr/'.$node->version, array()); |
|
104 | 104 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
105 | 105 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
106 | 106 | |
107 | 107 | $newNode = $this->nodeRepository->findInLastVersion($nodeId, $node->language, $this->siteId); |
108 | - $newNode->setRoutePattern('/page-test' .time()); |
|
108 | + $newNode->setRoutePattern('/page-test'.time()); |
|
109 | 109 | $this->documentManager->persist($newNode); |
110 | 110 | $this->documentManager->flush(); |
111 | 111 | |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | |
122 | 122 | $this->documentManager->flush(); |
123 | 123 | |
124 | - $this->client->request('DELETE', '/api/node/delete/' . $nodeId); |
|
124 | + $this->client->request('DELETE', '/api/node/delete/'.$nodeId); |
|
125 | 125 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
126 | 126 | |
127 | 127 | $this->assertEquals(2, count($this->redirectionRepository->findAll())); |