@@ -48,20 +48,20 @@ discard block |
||
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 |
||
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, |
@@ -45,21 +45,21 @@ |
||
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 | /** |
@@ -115,8 +115,8 @@ discard block |
||
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 |
||
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() |
@@ -133,4 +133,4 @@ |
||
133 | 133 | $dm->persist(clone $statusPublished); |
134 | 134 | $dm->flush(); |
135 | 135 | } |
136 | - } |
|
136 | + } |
@@ -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 | - } |
@@ -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 | /** |
@@ -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 | /** |