Browse Source

test fix for uppgrade

Sevajol Bastien 11 years ago
parent
commit
5876132bdd
2 changed files with 3 additions and 2 deletions
  1. 1 1
      app/autoload.php
  2. 2 1
      src/Muzich/CoreBundle/lib/FunctionalTest.php

+ 1 - 1
app/autoload.php View File

@@ -56,5 +56,5 @@ AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/lib/Doctrine/ORM/M
56 56
 
57 57
 //require_once __DIR__.'/../vendor/swiftmailer/lib/classes/Swift.php';
58 58
 require __DIR__.'/../vendor/swiftmailer/lib/swift_required.php';
59
-Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php');
59
+//Swift::registerAutoload(__DIR__.'/../vendor/swiftmailer/lib/swift_init.php');
60 60
 

+ 2 - 1
src/Muzich/CoreBundle/lib/FunctionalTest.php View File

@@ -125,6 +125,7 @@ class FunctionalTest extends WebTestCase
125 125
     // Un des mots de passe est incorrect
126 126
     $form['fos_user_registration_form[plainPassword][second]'] = $pass2;
127 127
     $form['fos_user_registration_form[token]'] = $token;
128
+    $form['fos_user_registration_form[cgu_accepted]']->tick();
128 129
     $this->submit($form);
129 130
   }
130 131
   
@@ -144,7 +145,7 @@ class FunctionalTest extends WebTestCase
144 145
       $pass2,
145 146
       $token
146 147
     );
147
-    
148
+    $this->outputDebug();
148 149
     $this->isResponseRedirection();
149 150
     $this->followRedirection();
150 151
     $this->isResponseSuccess();