Completed
Push39dc56...cb4616
pending — Build
created
Tests/Functional/ModelBundle/Repository/ContentRepositoryTest.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     {
197 197
         return array(
198 198
             array('car', ContentRepositoryInterface::CHOICE_AND, 'lorem', 3),
199
-            array('car',ContentRepositoryInterface::CHOICE_AND, 'sit', 1),
199
+            array('car', ContentRepositoryInterface::CHOICE_AND, 'sit', 1),
200 200
             array('car', ContentRepositoryInterface::CHOICE_AND, 'dolor', 0),
201 201
             array('car', ContentRepositoryInterface::CHOICE_AND, 'sit AND lorem', 1),
202 202
             array('news', ContentRepositoryInterface::CHOICE_AND, 'lorem', 1),
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
             'fields.tinimce_test.string_value' => 'attributes.tinimce_test.stringValue',
338 338
         );
339 339
 
340
-        $searchTypes = array (
340
+        $searchTypes = array(
341 341
             'attributes.car_name' => 'text',
342 342
             'attributes.description' => 'text',
343 343
             'attributes.on_market' => 'date',
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
         $contents = $this->repository->findForPaginateFilterByContentTypeSiteAndLanguage($configuration, $contentType, $siteId, $language, $searchTypes);
350 350
         $repositoryCount = $this->repository->countWithFilterAndContentTypeSiteAndLanguage($configuration, $contentType, $siteId, $language, $searchTypes);
351 351
 
352
-        if(!is_null($name)) {
352
+        if (!is_null($name)) {
353 353
             $this->assertEquals($name, $contents[0]->getName());
354 354
         }
355 355
         $this->assertCount($count, $contents);
@@ -362,16 +362,16 @@  discard block
 block discarded – undo
362 362
     public function provideContentTypeAndPaginateAndSearchAndsiteId()
363 363
     {
364 364
         return array(
365
-            1  => array('car', null, array("name" => "name", "dir" => "asc"), '2', 0 ,5 , 'en', 3, 3, '206 3 portes en'),
366
-            2  => array('car', null, array("name" => "name", "dir" => "desc"), '2', 0 ,5 , 'en', 3, 3, 'R5 3 portes en'),
367
-            3  => array('car', null, array("name" => "fields.car_name.string_value", "dir" => "asc"), '2', 0 ,5 , 'en', 3, 3, '206 3 portes en'),
368
-            4  => array('car', null, array("name" => "fields.car_name.string_value", "dir" => "desc"),'2', 0 ,5 , 'en', 3, 3, 'R5 3 portes en'),
369
-            5  => array('car', null, null, null, 0 ,1 , 'en', 1, 2),
370
-            6  => array('car', array('attributes.car_name' => '206'), null, '2', 0 , 2 , 'en', 1, 1),
371
-            7  => array('news', null, null, '2', 0 , 100, 'fr', 4, 4),
372
-            8  => array('news', null, null, '2', 50 , 100, 'en', 0, 0),
373
-            9 => array('news', array('name' => 'news'), null, '2', 0 , null, 'fr', 0, 0),
374
-            10 => array('car', null, null, '2', 0 ,5 , 'en', 3, 3),
365
+            1  => array('car', null, array("name" => "name", "dir" => "asc"), '2', 0, 5, 'en', 3, 3, '206 3 portes en'),
366
+            2  => array('car', null, array("name" => "name", "dir" => "desc"), '2', 0, 5, 'en', 3, 3, 'R5 3 portes en'),
367
+            3  => array('car', null, array("name" => "fields.car_name.string_value", "dir" => "asc"), '2', 0, 5, 'en', 3, 3, '206 3 portes en'),
368
+            4  => array('car', null, array("name" => "fields.car_name.string_value", "dir" => "desc"), '2', 0, 5, 'en', 3, 3, 'R5 3 portes en'),
369
+            5  => array('car', null, null, null, 0, 1, 'en', 1, 2),
370
+            6  => array('car', array('attributes.car_name' => '206'), null, '2', 0, 2, 'en', 1, 1),
371
+            7  => array('news', null, null, '2', 0, 100, 'fr', 4, 4),
372
+            8  => array('news', null, null, '2', 50, 100, 'en', 0, 0),
373
+            9 => array('news', array('name' => 'news'), null, '2', 0, null, 'fr', 0, 0),
374
+            10 => array('car', null, null, '2', 0, 5, 'en', 3, 3),
375 375
         );
376 376
     }
377 377
 
@@ -523,63 +523,63 @@  discard block
 block discarded – undo
523 523
      */
524 524
     protected function getDescriptionColumnEntity()
525 525
     {
526
-        return array (
526
+        return array(
527 527
             'name' =>
528
-            array (
528
+            array(
529 529
                 'key' => 'name',
530 530
                 'field' => 'name',
531 531
                 'type' => 'string',
532 532
             ),
533 533
             'language' =>
534
-            array (
534
+            array(
535 535
                 'key' => 'language',
536 536
                 'field' => 'language',
537 537
                 'type' => 'string',
538 538
             ),
539 539
             'status_label' =>
540
-            array (
540
+            array(
541 541
                 'key' => 'status_label',
542 542
                 'field' => 'status',
543 543
                 'type' => 'multiLanguages',
544 544
             ),
545 545
             'version' =>
546
-            array (
546
+            array(
547 547
                 'key' => 'version',
548 548
                 'field' => 'version',
549 549
                 'type' => 'integer',
550 550
             ),
551 551
             'linked_to_site' =>
552
-            array (
552
+            array(
553 553
                 'key' => 'linked_to_site',
554 554
                 'field' => 'linkedTosite',
555 555
                 'type' => 'boolean',
556 556
             ),
557 557
             'created_by' =>
558
-            array (
558
+            array(
559 559
                 'key' => 'created_by',
560 560
                 'field' => 'createdBy',
561 561
                 'type' => 'string',
562 562
             ),
563 563
             'updated_by' =>
564
-            array (
564
+            array(
565 565
                 'key' => 'updated_by',
566 566
                 'field' => 'updatedBy',
567 567
                 'type' => 'string',
568 568
             ),
569 569
             'created_at' =>
570
-            array (
570
+            array(
571 571
                 'key' => 'created_at',
572 572
                 'field' => 'createdAt',
573 573
                 'type' => 'date',
574 574
             ),
575 575
             'updated_at' =>
576
-            array (
576
+            array(
577 577
                 'key' => 'updated_at',
578 578
                 'field' => 'updatedAt',
579 579
                 'type' => 'date',
580 580
             ),
581 581
             'deleted' =>
582
-            array (
582
+            array(
583 583
                 'key' => 'deleted',
584 584
                 'field' => 'deleted',
585 585
                 'type' => 'boolean',
@@ -707,7 +707,7 @@  discard block
 block discarded – undo
707 707
 
708 708
         $this->repository->softDeleteContent($contentId);
709 709
         $contents = $this->repository->findByContentId($contentId);
710
-        foreach ($contents as $content ) {
710
+        foreach ($contents as $content) {
711 711
             $this->assertTrue($content->isDeleted());
712 712
         }
713 713
         $this->repository->restoreDeletedContent($contentId);
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
         $documentManager->close();
718 718
 
719 719
         $contents = $this->repository->findByContentId($contentId);
720
-        foreach ($contents as $content ) {
720
+        foreach ($contents as $content) {
721 721
             $this->assertFalse($content->isDeleted());
722 722
         }
723 723
     }
Please login to merge, or discard this patch.