@@ -28,13 +28,13 @@ discard block |
||
28 | 28 | |
29 | 29 | $commandTester->execute(array('command' => $command->getName())); |
30 | 30 | $this->assertRegExp( |
31 | - '/Publishing '.$entityName.'s for siteId ' . $siteId . '/', |
|
31 | + '/Publishing '.$entityName.'s for siteId '.$siteId.'/', |
|
32 | 32 | $commandTester->getDisplay() |
33 | 33 | ); |
34 | 34 | |
35 | 35 | foreach ($elements as $element) { |
36 | 36 | $this->assertRegExp( |
37 | - '/-> ' . $element->getName() . ' \(v' . $element->getVersion() . ' ' . $element->getLanguage() . '\) published/', |
|
37 | + '/-> '.$element->getName().' \(v'.$element->getVersion().' '.$element->getLanguage().'\) published/', |
|
38 | 38 | $commandTester->getDisplay() |
39 | 39 | ); |
40 | 40 | } |
@@ -60,13 +60,13 @@ discard block |
||
60 | 60 | |
61 | 61 | $commandTester->execute(array('command' => $command->getName())); |
62 | 62 | $this->assertRegExp( |
63 | - '/Unpublishing '.$entityName.'s for siteId ' . $siteId . '/', |
|
63 | + '/Unpublishing '.$entityName.'s for siteId '.$siteId.'/', |
|
64 | 64 | $commandTester->getDisplay() |
65 | 65 | ); |
66 | 66 | |
67 | 67 | foreach ($elements as $element) { |
68 | 68 | $this->assertRegExp( |
69 | - '/-> ' . $element->getName() . ' \(v' . $element->getVersion() . ' ' . $element->getLanguage() . '\) unpublished/', |
|
69 | + '/-> '.$element->getName().' \(v'.$element->getVersion().' '.$element->getLanguage().'\) unpublished/', |
|
70 | 70 | $commandTester->getDisplay() |
71 | 71 | ); |
72 | 72 | } |
@@ -19,8 +19,8 @@ |
||
19 | 19 | */ |
20 | 20 | public function testApi($url, $getParameter = '', $method = 'GET') |
21 | 21 | { |
22 | - $baseGetParameter = '?access_token=' . $this->getAccessToken(); |
|
23 | - $this->client->request($method, $url . $baseGetParameter . $getParameter); |
|
22 | + $baseGetParameter = '?access_token='.$this->getAccessToken(); |
|
23 | + $this->client->request($method, $url.$baseGetParameter.$getParameter); |
|
24 | 24 | $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); |
25 | 25 | $this->assertSame('application/json', $this->client->getResponse()->headers->get('content-type')); |
26 | 26 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function testApi($url, $method = 'GET') |
24 | 24 | { |
25 | - $this->client->request($method, $url . '?access_token=' . $this->getAccessToken()); |
|
25 | + $this->client->request($method, $url.'?access_token='.$this->getAccessToken()); |
|
26 | 26 | |
27 | 27 | $this->assertEquals(403, $this->client->getResponse()->getStatusCode()); |
28 | 28 | } |
@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function testInstance($class, $interface) |
20 | 20 | { |
21 | - $fullClass = 'OpenOrchestra\ModelBundle\Document\\' . $class; |
|
22 | - $fullInterface = 'OpenOrchestra\ModelInterface\Model\\' . $interface; |
|
21 | + $fullClass = 'OpenOrchestra\ModelBundle\Document\\'.$class; |
|
22 | + $fullInterface = 'OpenOrchestra\ModelInterface\Model\\'.$interface; |
|
23 | 23 | $entity = new $fullClass(); |
24 | 24 | |
25 | 25 | $this->assertInstanceOf($fullInterface, $entity); |
@@ -31,52 +31,52 @@ discard block |
||
31 | 31 | public function providateClassInterfaceRelation() |
32 | 32 | { |
33 | 33 | return array( |
34 | - array('Node' , 'NodeInterface'), |
|
35 | - array('Node' , 'SchemeableInterface'), |
|
36 | - array('Node' , 'ReadSchemeableInterface'), |
|
37 | - array('Node' , 'VersionableInterface'), |
|
38 | - array('Node' , 'SoftDeleteableInterface'), |
|
39 | - array('Node' , 'StatusableInterface'), |
|
40 | - array('Content' , 'StatusableInterface'), |
|
41 | - array('Content' , 'SoftDeleteableInterface'), |
|
42 | - array('Content' , 'VersionableInterface'), |
|
43 | - array('Content' , 'SiteLinkableInterface'), |
|
44 | - array('ContentType' , 'SiteLinkableInterface'), |
|
45 | - array('Area' , 'AreaInterface'), |
|
46 | - array('Area' , 'ReadAreaInterface'), |
|
47 | - array('Block' , 'BlockInterface'), |
|
48 | - array('Block' , 'ReadBlockInterface'), |
|
49 | - array('Block' , 'TimestampableInterface'), |
|
50 | - array('ContentAttribute' , 'ContentAttributeInterface'), |
|
51 | - array('ContentAttribute' , 'ReadContentAttributeInterface'), |
|
52 | - array('Content' , 'ContentInterface'), |
|
53 | - array('Content' , 'ReadContentInterface'), |
|
54 | - array('ContentType' , 'ContentTypeInterface'), |
|
55 | - array('ContentType' , 'SoftDeleteableInterface'), |
|
56 | - array('ContentType' , 'FieldTypeContainerInterface'), |
|
57 | - array('ContentType' , 'VersionableInterface'), |
|
58 | - array('FieldType' , 'FieldTypeInterface'), |
|
59 | - array('FieldOption' , 'FieldOptionInterface'), |
|
60 | - array('Site' , 'SiteInterface'), |
|
61 | - array('Site' , 'SoftDeleteableInterface'), |
|
62 | - array('SiteAlias' , 'SiteAliasInterface'), |
|
63 | - array('SiteAlias' , 'SchemeableInterface'), |
|
64 | - array('SiteAlias' , 'ReadSchemeableInterface'), |
|
65 | - array('Node' , 'BlameableInterface'), |
|
66 | - array('Content' , 'BlameableInterface'), |
|
67 | - array('ContentType' , 'BlameableInterface'), |
|
68 | - array('Node' , 'TimestampableInterface'), |
|
69 | - array('Content' , 'TimestampableInterface'), |
|
70 | - array('ContentType' , 'TimestampableInterface'), |
|
71 | - array('Keyword' , 'KeywordInterface'), |
|
72 | - array('Content' , 'KeywordableInterface'), |
|
73 | - array('Redirection' , 'RedirectionInterface'), |
|
74 | - array('Redirection' , 'ReadRedirectionInterface'), |
|
75 | - array('TrashItem' , 'TrashItemInterface'), |
|
76 | - array('RouteDocument' , 'RouteDocumentInterface'), |
|
77 | - array('WorkflowProfile' , 'WorkflowProfileInterface'), |
|
34 | + array('Node', 'NodeInterface'), |
|
35 | + array('Node', 'SchemeableInterface'), |
|
36 | + array('Node', 'ReadSchemeableInterface'), |
|
37 | + array('Node', 'VersionableInterface'), |
|
38 | + array('Node', 'SoftDeleteableInterface'), |
|
39 | + array('Node', 'StatusableInterface'), |
|
40 | + array('Content', 'StatusableInterface'), |
|
41 | + array('Content', 'SoftDeleteableInterface'), |
|
42 | + array('Content', 'VersionableInterface'), |
|
43 | + array('Content', 'SiteLinkableInterface'), |
|
44 | + array('ContentType', 'SiteLinkableInterface'), |
|
45 | + array('Area', 'AreaInterface'), |
|
46 | + array('Area', 'ReadAreaInterface'), |
|
47 | + array('Block', 'BlockInterface'), |
|
48 | + array('Block', 'ReadBlockInterface'), |
|
49 | + array('Block', 'TimestampableInterface'), |
|
50 | + array('ContentAttribute', 'ContentAttributeInterface'), |
|
51 | + array('ContentAttribute', 'ReadContentAttributeInterface'), |
|
52 | + array('Content', 'ContentInterface'), |
|
53 | + array('Content', 'ReadContentInterface'), |
|
54 | + array('ContentType', 'ContentTypeInterface'), |
|
55 | + array('ContentType', 'SoftDeleteableInterface'), |
|
56 | + array('ContentType', 'FieldTypeContainerInterface'), |
|
57 | + array('ContentType', 'VersionableInterface'), |
|
58 | + array('FieldType', 'FieldTypeInterface'), |
|
59 | + array('FieldOption', 'FieldOptionInterface'), |
|
60 | + array('Site', 'SiteInterface'), |
|
61 | + array('Site', 'SoftDeleteableInterface'), |
|
62 | + array('SiteAlias', 'SiteAliasInterface'), |
|
63 | + array('SiteAlias', 'SchemeableInterface'), |
|
64 | + array('SiteAlias', 'ReadSchemeableInterface'), |
|
65 | + array('Node', 'BlameableInterface'), |
|
66 | + array('Content', 'BlameableInterface'), |
|
67 | + array('ContentType', 'BlameableInterface'), |
|
68 | + array('Node', 'TimestampableInterface'), |
|
69 | + array('Content', 'TimestampableInterface'), |
|
70 | + array('ContentType', 'TimestampableInterface'), |
|
71 | + array('Keyword', 'KeywordInterface'), |
|
72 | + array('Content', 'KeywordableInterface'), |
|
73 | + array('Redirection', 'RedirectionInterface'), |
|
74 | + array('Redirection', 'ReadRedirectionInterface'), |
|
75 | + array('TrashItem', 'TrashItemInterface'), |
|
76 | + array('RouteDocument', 'RouteDocumentInterface'), |
|
77 | + array('WorkflowProfile', 'WorkflowProfileInterface'), |
|
78 | 78 | array('WorkflowProfileCollection', 'WorkflowProfileCollectionInterface'), |
79 | - array('WorkflowTransition' , 'WorkflowTransitionInterface'), |
|
79 | + array('WorkflowTransition', 'WorkflowTransitionInterface'), |
|
80 | 80 | ); |
81 | 81 | } |
82 | 82 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | if (count($nodes) > 1) { |
129 | 129 | for ($i = 1; $i < count($nodes); $i++) { |
130 | - $this->assertGreaterThan($nodes[$i]->getVersion(), $nodes[$i-1]->getVersion()); |
|
130 | + $this->assertGreaterThan($nodes[$i]->getVersion(), $nodes[$i - 1]->getVersion()); |
|
131 | 131 | } |
132 | 132 | } |
133 | 133 | } |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | $dm = static::$kernel->getContainer()->get('object_manager'); |
711 | 711 | $nodeNews = $this->repository->findOneByNodeAndSite('fixture_page_news', '2'); |
712 | 712 | $nodeCommunity = $this->repository->findOneByNodeAndSite('fixture_page_community', '2'); |
713 | - $nodeContact= $this->repository->findOneByNodeAndSite('fixture_page_contact', '2'); |
|
713 | + $nodeContact = $this->repository->findOneByNodeAndSite('fixture_page_contact', '2'); |
|
714 | 714 | $dm->detach($nodeContact); |
715 | 715 | $dm->detach($nodeCommunity); |
716 | 716 | $dm->detach($nodeNews); |
@@ -58,7 +58,7 @@ |
||
58 | 58 | { |
59 | 59 | return array( |
60 | 60 | array('draft', 'toTranslate', false), |
61 | - array('draft', 'published' , true), |
|
61 | + array('draft', 'published', true), |
|
62 | 62 | ); |
63 | 63 | } |
64 | 64 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function provideLanguageAndVersionListAndSiteId() |
49 | 49 | { |
50 | 50 | return array( |
51 | - array(0,'fake_component', 'en', '2'), |
|
51 | + array(0, 'fake_component', 'en', '2'), |
|
52 | 52 | array(2, 'tiny_mce_wysiwyg', 'fr', '2'), |
53 | 53 | array(2, 'tiny_mce_wysiwyg', 'en', '2'), |
54 | 54 | array(1, 'menu', 'en', '2'), |
@@ -133,4 +133,4 @@ |
||
133 | 133 | $dm->persist(clone $statusPublished); |
134 | 134 | $dm->flush(); |
135 | 135 | } |
136 | - } |
|
136 | + } |
@@ -102,10 +102,10 @@ |
||
102 | 102 | */ |
103 | 103 | public function providePaginateConfiguration() |
104 | 104 | { |
105 | - $mapping = array('label' => 'labels'); |
|
106 | - $conf1 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, null); |
|
107 | - $conf2 = PaginateFinderConfiguration::generateFromVariable(null , null, null, $mapping, array('label' => 'o', 'language' => 'en')); |
|
108 | - $conf3 = PaginateFinderConfiguration::generateFromVariable(null , 2 , 4 , $mapping, array('label' => 'r', 'language' => 'en')); |
|
105 | + $mapping = array('label' => 'labels'); |
|
106 | + $conf1 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, null); |
|
107 | + $conf2 = PaginateFinderConfiguration::generateFromVariable(null, null, null, $mapping, array('label' => 'o', 'language' => 'en')); |
|
108 | + $conf3 = PaginateFinderConfiguration::generateFromVariable(null, 2, 4, $mapping, array('label' => 'r', 'language' => 'en')); |
|
109 | 109 | |
110 | 110 | return array( |
111 | 111 | 'No criteria' => array($conf1, 5, 5), |