Completed
Push — master ( 106d3c...7eed6f )
by amaury
03:05
created
Functional/BackofficeBundle/EventSubscriber/BlockFormTypeSubscriberTest.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -48,20 +48,20 @@  discard block
 block discarded – undo
48 48
         $formType =  static::$kernel->getContainer()->get('open_orchestra_backoffice.generate_form_manager')->getFormType($block);
49 49
         $form = $this->formFactory->create($formType, $block, array('csrf_protection' => false));
50 50
 
51
-         $form->submit(array(
52
-             'style' => 'default',
53
-             'videoType' => 'youtube',
54
-             'youtubeVideoId' => 'videoId',
55
-             'youtubeAutoplay' => true,
56
-         ));
57
-
58
-         $this->assertTrue($form->isSynchronized());
59
-         /** @var BlockInterface $data */
60
-         $data = $form->getConfig()->getData();
61
-         $this->assertBlock($data);
62
-         $this->assertSame('videoId', $data->getAttribute('youtubeVideoId'));
63
-         $this->assertTrue($data->getAttribute('youtubeAutoplay'));
64
-         $this->assertFalse($data->getAttribute('youtubeFs'));
51
+            $form->submit(array(
52
+                'style' => 'default',
53
+                'videoType' => 'youtube',
54
+                'youtubeVideoId' => 'videoId',
55
+                'youtubeAutoplay' => true,
56
+            ));
57
+
58
+            $this->assertTrue($form->isSynchronized());
59
+            /** @var BlockInterface $data */
60
+            $data = $form->getConfig()->getData();
61
+            $this->assertBlock($data);
62
+            $this->assertSame('videoId', $data->getAttribute('youtubeVideoId'));
63
+            $this->assertTrue($data->getAttribute('youtubeAutoplay'));
64
+            $this->assertFalse($data->getAttribute('youtubeFs'));
65 65
     }
66 66
 
67 67
     /**
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
             array(ContentListStrategy::NAME, array(
100 100
                 'contentNodeId' => 'root',
101 101
                 'contentSearch' => array(
102
-                  'contentType' => 'news',
103
-                  'choiceType' => 'choice_and',
104
-                  'keywords' => null,
102
+                    'contentType' => 'news',
103
+                    'choiceType' => 'choice_and',
104
+                    'keywords' => null,
105 105
                 ),
106 106
                 'characterNumber' => 150,
107 107
                 'contentTemplateEnabled' => true,
Please login to merge, or discard this patch.
Tests/Functional/BackofficeBundle/Controller/NodeControllerTest.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -45,21 +45,21 @@
 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();
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
     /**
Please login to merge, or discard this patch.
Tests/Functional/GroupBundle/Repository/GroupRepositoryTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
     public function provideSiteId()
116 116
     {
117 117
         return array(
118
-             'Empty site' => array('3', 1),
119
-             'Demo site' => array('2', 2)
118
+                'Empty site' => array('3', 1),
119
+                'Demo site' => array('2', 2)
120 120
         );
121 121
     }
122 122
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
         $this->assertNull($this->repository->findOneByName('test'));
175 175
     }
176 176
 
177
-   /**
177
+    /**
178 178
      * Test remove users
179 179
      */
180 180
     public function testSoftDeleteGroupBySite()
Please login to merge, or discard this patch.
Tests/Functional/ModelBundle/Repository/StatustRepositoryTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,4 +133,4 @@
 block discarded – undo
133 133
         $dm->persist(clone $statusPublished);
134 134
         $dm->flush();
135 135
     }
136
- }
136
+    }
Please login to merge, or discard this patch.
Tests/Functional/ModelLogBundle/Repository/LogRepositoryTest.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
- }
Please login to merge, or discard this patch.
Tests/Functional/BackofficeBundle/Controller/SiteControllerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,9 +114,9 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Tests/Functional/BackofficeBundle/Controller/ContentTypeControllerTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -34,16 +34,16 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.