Completed
Push — master ( 72d498...b607ed )
by amaury
05:28 queued 02:16
created
Tests/Functional/BackofficeBundle/Controller/SiteControllerTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/Functional/BackofficeBundle/Controller/NodeControllerTest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,19 +45,19 @@  discard block
 block discarded – undo
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
     }
@@ -73,15 +73,15 @@  discard block
 block discarded – undo
73 73
 
74 74
         $formNode = $crawler->selectButton('Save')->form();
75 75
 
76
-        $nodeName = 'fixturetest' . time();
76
+        $nodeName = 'fixturetest'.time();
77 77
         $formNode['oo_node[name]'] = $nodeName;
78 78
         $formNode['oo_node[nodeTemplateSelection][nodeSource]'] = 'root';
79
-        $formNode['oo_node[routePattern]'] = '/page-test' .time();
79
+        $formNode['oo_node[routePattern]'] = '/page-test'.time();
80 80
 
81 81
         $this->submitForm($formNode);
82 82
 
83 83
         $node = static::$kernel->getContainer()->get('open_orchestra_model.repository.node')->findOneByName($nodeName);
84
-        $this->client->request('GET', '/api/node/show/' . $node->getNodeId() . '/' . $node->getSiteId() . '/' . $node->getLanguage() . '/' . $node->getVersion());
84
+        $this->client->request('GET', '/api/node/show/'.$node->getNodeId().'/'.$node->getSiteId().'/'.$node->getLanguage().'/'.$node->getVersion());
85 85
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
86 86
         $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type'));
87 87
         $node = json_decode($this->client->getResponse()->getContent());
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
         $this->changeNodeStatusWithRouteRedirectionTest($nodeId, $statuses[2], $redirectionCount, $routeDocumentCount);
102 102
         $this->changeNodeStatusWithRouteRedirectionTest($nodeId, $statuses[1], $redirectionCount, $routeDocumentCount + 2);
103 103
 
104
-        $this->client->request('POST', '/api/node/new-version/' . $nodeName . '/fr/' . $node->version, array());
104
+        $this->client->request('POST', '/api/node/new-version/'.$nodeName.'/fr/'.$node->version, array());
105 105
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
106 106
         $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type'));
107 107
 
108 108
         $newNode = $this->nodeRepository->findInLastVersion($nodeName, $node->language, $this->siteId);
109
-        $newNode->setRoutePattern('/page-test' .time());
109
+        $newNode->setRoutePattern('/page-test'.time());
110 110
         $this->documentManager->persist($newNode);
111 111
         $this->documentManager->flush($newNode);
112 112
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         }
123 123
         static::$kernel->getContainer()->get('object_manager')->flush();
124 124
 
125
-        $this->client->request('DELETE', '/api/node/delete/' . $nodeName);
125
+        $this->client->request('DELETE', '/api/node/delete/'.$nodeName);
126 126
         $this->assertEquals(200, $this->client->getResponse()->getStatusCode());
127 127
 
128 128
         $this->assertEquals(1, count($this->redirectionRepository->findAll()));
Please login to merge, or discard this patch.
Tests/Functional/WorkflowAdminBundle/Controller/StatusControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.