Completed
Push — update_vendor ( 4e04e9...325785 )
by amaury
03:22
created
Tests/Functional/ModelBundle/Repository/ContentRepositoryTest.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         return array(
156 156
             array('car', ContentRepositoryInterface::CHOICE_AND, 'lorem', 3),
157
-            array('car',ContentRepositoryInterface::CHOICE_AND, 'sit', 1),
157
+            array('car', ContentRepositoryInterface::CHOICE_AND, 'sit', 1),
158 158
             array('car', ContentRepositoryInterface::CHOICE_AND, 'dolor', 0),
159 159
             array('car', ContentRepositoryInterface::CHOICE_AND, 'sit AND lorem', 1),
160 160
             array('news', ContentRepositoryInterface::CHOICE_AND, 'lorem', 1),
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
         $configuration->setPaginateConfiguration($order, $skip, $limit);
283 283
         $contents = $this->repository->findPaginatedLastVersionByContentTypeAndsite($contentType, $configuration, $siteId);
284 284
 
285
-        if(!is_null($name)) {
285
+        if (!is_null($name)) {
286 286
             $this->assertEquals($name, $contents[0]->getName());
287 287
         }
288 288
         $this->assertCount($count, $contents);
@@ -296,21 +296,21 @@  discard block
 block discarded – undo
296 296
         $descriptionEntity = $this->getDescriptionColumnEntity();
297 297
 
298 298
         return array(
299
-            array('car', $descriptionEntity, null, array("name" => "name", "dir" => "asc"), null, 0 ,5 , 3, '206 3 portes fr'),
300
-            array('car', $descriptionEntity, null, array("name" => "name", "dir" => "desc"), null, 0 ,5 , 3, 'R5 3 portes en'),
301
-            array('car', $descriptionEntity, null, array("name" => "attributes.car_name.string_value", "dir" => "asc"), null, 0 ,5 , 3, '206 3 portes fr'),
302
-            array('car', $descriptionEntity, null, array("name" => "attributes.car_name.string_value", "dir" => "desc"), null, 0 ,5 , 3, 'R5 3 portes en'),
303
-            array('car', $descriptionEntity, null, null, null, 0 ,1 , 1),
304
-            array('car', $descriptionEntity, $this->generateColumnsProvider(array('name' => '206')), null, null, 0 ,2 , 1),
305
-            array('car', $descriptionEntity, $this->generateColumnsProvider(array('version' => '2')), null, null, 0 ,2 , 2),
306
-            array('news', $descriptionEntity, null, null, null, 0 , 100, 4),
307
-            array('news', $descriptionEntity, null, null, null, 50 , 100, 0),
308
-            array('news', $descriptionEntity, $this->generateColumnsProvider(array('name' => 'news')), null, null, 0 , null, 0),
309
-            array('car', $descriptionEntity, null, null, '2', 0 ,5 , 3),
310
-            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'publish')), null, null, null ,null , 3),
311
-            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'Publi')), null, null, null ,null , 3),
312
-            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'draft')), null, null, null ,null , 0),
313
-            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'brouillon')), null, null, null ,null , 0),
299
+            array('car', $descriptionEntity, null, array("name" => "name", "dir" => "asc"), null, 0, 5, 3, '206 3 portes fr'),
300
+            array('car', $descriptionEntity, null, array("name" => "name", "dir" => "desc"), null, 0, 5, 3, 'R5 3 portes en'),
301
+            array('car', $descriptionEntity, null, array("name" => "attributes.car_name.string_value", "dir" => "asc"), null, 0, 5, 3, '206 3 portes fr'),
302
+            array('car', $descriptionEntity, null, array("name" => "attributes.car_name.string_value", "dir" => "desc"), null, 0, 5, 3, 'R5 3 portes en'),
303
+            array('car', $descriptionEntity, null, null, null, 0, 1, 1),
304
+            array('car', $descriptionEntity, $this->generateColumnsProvider(array('name' => '206')), null, null, 0, 2, 1),
305
+            array('car', $descriptionEntity, $this->generateColumnsProvider(array('version' => '2')), null, null, 0, 2, 2),
306
+            array('news', $descriptionEntity, null, null, null, 0, 100, 4),
307
+            array('news', $descriptionEntity, null, null, null, 50, 100, 0),
308
+            array('news', $descriptionEntity, $this->generateColumnsProvider(array('name' => 'news')), null, null, 0, null, 0),
309
+            array('car', $descriptionEntity, null, null, '2', 0, 5, 3),
310
+            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'publish')), null, null, null, null, 3),
311
+            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'Publi')), null, null, null, null, 3),
312
+            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'draft')), null, null, null, null, 0),
313
+            array('car', $descriptionEntity, $this->generateColumnsProvider(array('status_label' => 'brouillon')), null, null, null, null, 0),
314 314
 
315 315
         );
316 316
     }
@@ -508,63 +508,63 @@  discard block
 block discarded – undo
508 508
      */
509 509
     protected function getDescriptionColumnEntity()
510 510
     {
511
-        return array (
511
+        return array(
512 512
             'name' =>
513
-            array (
513
+            array(
514 514
                 'key' => 'name',
515 515
                 'field' => 'name',
516 516
                 'type' => 'string',
517 517
             ),
518 518
             'language' =>
519
-            array (
519
+            array(
520 520
                 'key' => 'language',
521 521
                 'field' => 'language',
522 522
                 'type' => 'string',
523 523
             ),
524 524
             'status_label' =>
525
-            array (
525
+            array(
526 526
                 'key' => 'status_label',
527 527
                 'field' => 'status',
528 528
                 'type' => 'multiLanguages',
529 529
             ),
530 530
             'version' =>
531
-            array (
531
+            array(
532 532
                 'key' => 'version',
533 533
                 'field' => 'version',
534 534
                 'type' => 'integer',
535 535
             ),
536 536
             'linked_to_site' =>
537
-            array (
537
+            array(
538 538
                 'key' => 'linked_to_site',
539 539
                 'field' => 'linkedTosite',
540 540
                 'type' => 'boolean',
541 541
             ),
542 542
             'created_by' =>
543
-            array (
543
+            array(
544 544
                 'key' => 'created_by',
545 545
                 'field' => 'createdBy',
546 546
                 'type' => 'string',
547 547
             ),
548 548
             'updated_by' =>
549
-            array (
549
+            array(
550 550
                 'key' => 'updated_by',
551 551
                 'field' => 'updatedBy',
552 552
                 'type' => 'string',
553 553
             ),
554 554
             'created_at' =>
555
-            array (
555
+            array(
556 556
                 'key' => 'created_at',
557 557
                 'field' => 'createdAt',
558 558
                 'type' => 'date',
559 559
             ),
560 560
             'updated_at' =>
561
-            array (
561
+            array(
562 562
                 'key' => 'updated_at',
563 563
                 'field' => 'updatedAt',
564 564
                 'type' => 'date',
565 565
             ),
566 566
             'deleted' =>
567
-            array (
567
+            array(
568 568
                 'key' => 'deleted',
569 569
                 'field' => 'deleted',
570 570
                 'type' => 'boolean',
Please login to merge, or discard this patch.