Browse Source

test fix après amj du code

bastien 13 years ago
parent
commit
389bc7f98c

+ 4 - 2
src/Muzich/CoreBundle/Controller/CoreController.php View File

293
             'search_form_name' => 'search',
293
             'search_form_name' => 'search',
294
             'network_public'   => $search_object->isNetworkPublic(),
294
             'network_public'   => $search_object->isNetworkPublic(),
295
             'elements'         => $search_object->getElements($this->getDoctrine(), $this->getUserId()),
295
             'elements'         => $search_object->getElements($this->getDoctrine(), $this->getUserId()),
296
-            'more_count'       => $this->container->getParameter('search_default_count')*2
296
+            'more_count'       => $this->container->getParameter('search_default_count')*2,
297
+            'display_comments' => false
297
           ));
298
           ));
298
         }
299
         }
299
         else
300
         else
319
             'add_form'      => (isset($add_form)) ? $add_form->createView() : null,
320
             'add_form'      => (isset($add_form)) ? $add_form->createView() : null,
320
             'add_form_name' => (isset($add_form)) ? 'add' : null,
321
             'add_form_name' => (isset($add_form)) ? 'add' : null,
321
             'more_count'    => null,
322
             'more_count'    => null,
322
-            'more_route'    => 'show_group_more'
323
+            'more_route'    => 'show_group_more',
324
+            'display_comments' => false
323
           ));
325
           ));
324
         }
326
         }
325
 
327
 

+ 3 - 1
src/Muzich/CoreBundle/Tests/Controller/HomeControllerTest.php View File

55
         'count'     => $this->getContainer()->getParameter('search_default_count'),
55
         'count'     => $this->getContainer()->getParameter('search_default_count'),
56
         'user_id'   => null,
56
         'user_id'   => null,
57
         'group_id'  => null,
57
         'group_id'  => null,
58
-        'favorite' => false
58
+        'favorite' => false,
59
+        'ids'       => null,
59
     ), $this->getSession()->get('user.element_search.params'));
60
     ), $this->getSession()->get('user.element_search.params'));
60
     
61
     
61
     // On fabrique l'ElementSearcher correspondant
62
     // On fabrique l'ElementSearcher correspondant
184
       array($hardtek->getId(), $tribe->getId())
185
       array($hardtek->getId(), $tribe->getId())
185
     );
186
     );
186
     
187
     
188
+    $this->outputDebug();
187
     $this->isResponseSuccess();
189
     $this->isResponseSuccess();
188
         
190
         
189
     $this->notExist('li:contains("Mon bel element a4er563a1r")');
191
     $this->notExist('li:contains("Mon bel element a4er563a1r")');

+ 4 - 2
src/Muzich/CoreBundle/Tests/Searcher/ElementSearcherTest.php View File

16
         'count'     => 20, 
16
         'count'     => 20, 
17
         'user_id'   => 185, 
17
         'user_id'   => 185, 
18
         'group_id'  => null, 
18
         'group_id'  => null, 
19
-        'favorite'  => false
19
+        'favorite'  => false,
20
+        'ids'       => null
20
     ));
21
     ));
21
 
22
 
22
     $this->assertEquals($ia, $es->getParams());
23
     $this->assertEquals($ia, $es->getParams());
39
         'count'     => 21, 
40
         'count'     => 21, 
40
         'user_id'   => 115, 
41
         'user_id'   => 115, 
41
         'group_id'  => null, 
42
         'group_id'  => null, 
42
-        'favorite'  => false
43
+        'favorite'  => false,
44
+        'ids'       => null
43
     ));
45
     ));
44
 
46
 
45
     $this->assertEquals($ua, $es->getParams());
47
     $this->assertEquals($ua, $es->getParams());