@@ -7,7 +7,6 @@ |
||
7 | 7 | use OpenOrchestra\ModelBundle\Repository\NodeRepository; |
8 | 8 | use OpenOrchestra\ModelInterface\NodeEvents; |
9 | 9 | use OpenOrchestra\Pagination\Configuration\PaginateFinderConfiguration; |
10 | -use Phake; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * Class NodeRepositoryTest |
@@ -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, 6, 6), |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | { |
60 | 60 | $this->markTestSkipped('To reactivate when API roles will be implemented'); |
61 | 61 | |
62 | - $node = $this->nodeRepository->findOnePublished('fixture_page_contact','fr','2'); |
|
62 | + $node = $this->nodeRepository->findOnePublished('fixture_page_contact', 'fr', '2'); |
|
63 | 63 | $node->getStatus()->setPublishedState(false); |
64 | 64 | static::$kernel->getContainer()->get('object_manager')->flush(); |
65 | 65 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $nodeLastVersion = $this->nodeRepository |
105 | 105 | ->findInLastVersion('fixture_page_community', 'fr', '2'); |
106 | 106 | |
107 | - $this->assertSame($node->getVersion()+1, $nodeLastVersion->getVersion()); |
|
107 | + $this->assertSame($node->getVersion() + 1, $nodeLastVersion->getVersion()); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | $dm->clear(); |
374 | 374 | $node = $this->nodeRepository->findInLastVersion('root', 'fr', '2'); |
375 | 375 | $footerAreaBlocks = $node->getArea('footer')->getBlocks(); |
376 | - $addedBlock = $footerAreaBlocks[1]; |
|
376 | + $addedBlock = $footerAreaBlocks[1]; |
|
377 | 377 | |
378 | 378 | $this->assertSame($block->getId(), $addedBlock->getId()); |
379 | 379 | } |
@@ -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 | /** |