|
@@ -3,6 +3,7 @@
|
3
|
3
|
namespace Muzich\CoreBundle\Tests\Controller;
|
4
|
4
|
|
5
|
5
|
use Muzich\CoreBundle\lib\FunctionalTest;
|
|
6
|
+use Muzich\CoreBundle\Entity\RegistrationToken;
|
6
|
7
|
|
7
|
8
|
class UserControllerTest extends FunctionalTest
|
8
|
9
|
{
|
|
@@ -20,11 +21,19 @@ class UserControllerTest extends FunctionalTest
|
20
|
21
|
$this->crawler = $this->client->request('GET', $this->generateUrl('index'));
|
21
|
22
|
$this->isResponseSuccess();
|
22
|
23
|
|
|
24
|
+ // On a besoin d'un token pour le moment
|
|
25
|
+ $token = new RegistrationToken();
|
|
26
|
+ $token->setToken('hekt78yl789dzafdfz');
|
|
27
|
+ $em = $this->getDoctrine()->getEntityManager();
|
|
28
|
+ $em->persist($token);
|
|
29
|
+ $em->flush();
|
|
30
|
+
|
23
|
31
|
$this->procedure_registration_success(
|
24
|
32
|
'raoulc',
|
25
|
33
|
'raoulc.def4v65sds@gmail.com',
|
26
|
34
|
'toor',
|
27
|
|
- 'toor'
|
|
35
|
+ 'toor',
|
|
36
|
+ 'hekt78yl789dzafdfz'
|
28
|
37
|
);
|
29
|
38
|
|
30
|
39
|
// Il ne doit y avoir aucun enregistrements de tags favoris
|