|
@@ -87,18 +87,11 @@ class IndexControllerTest extends FunctionalTest
|
87
|
87
|
|
88
|
88
|
$this->exist('div.register');
|
89
|
89
|
$this->exist('form[action="'.($url = $this->generateUrl('register')).'"]');
|
90
|
|
- $this->exist('form[action="'.$url.'"] input[id="fos_user_registration_form_username"]');
|
91
|
|
- $this->exist('form[action="'.$url.'"] input[id="fos_user_registration_form_email"]');
|
92
|
|
- $this->exist('form[action="'.$url.'"] input[id="fos_user_registration_form_plainPassword_first"]');
|
93
|
|
- $this->exist('form[action="'.$url.'"] input[id="fos_user_registration_form_plainPassword_second"]');
|
|
90
|
+ $this->exist('form[action="'.$url.'"] input[id="muzich_user_registration_email"]');
|
94
|
91
|
$this->exist('form[action="'.$url.'"] input[type="submit"]');
|
95
|
92
|
|
96
|
93
|
$this->procedure_registration_success(
|
97
|
|
- 'raoula',
|
98
|
|
- 'raoula.def4v65sds@gmail.com',
|
99
|
|
- 'toor',
|
100
|
|
- 'toor',
|
101
|
|
- '4vcsdv54svqcc3q1v54sdv6qs'
|
|
94
|
+ 'raoula.def4v65sds@gmail.com'
|
102
|
95
|
);
|
103
|
96
|
}
|
104
|
97
|
|
|
@@ -118,42 +111,9 @@ class IndexControllerTest extends FunctionalTest
|
118
|
111
|
$em->persist($token);
|
119
|
112
|
$em->flush();
|
120
|
113
|
|
121
|
|
- // Mots de passe différents
|
122
|
|
- $this->procedure_registration_failure(
|
123
|
|
- 'raoulb'.time(),
|
124
|
|
- 'raoulb.def4v65sds@gmail.com',
|
125
|
|
- 'toor',
|
126
|
|
- 'toorr',
|
127
|
|
- $token_name
|
128
|
|
- );
|
129
|
|
-
|
130
|
|
- // Pseudo trop court
|
131
|
|
- $this->procedure_registration_failure(
|
132
|
|
- 'rb',
|
133
|
|
- 'raoulb.def4v65sds@gmail.com',
|
134
|
|
- 'toor',
|
135
|
|
- 'toor',
|
136
|
|
- $token_name
|
137
|
|
- );
|
138
|
|
-
|
139
|
114
|
// Pseudo trop long
|
140
|
115
|
$this->procedure_registration_failure(
|
141
|
|
- 'raouuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu'
|
142
|
|
- .'uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu'
|
143
|
|
- .'uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuul'.time(),
|
144
|
|
- 'raoulb.def4v65sds@gmail.com',
|
145
|
|
- 'toor',
|
146
|
|
- 'toor',
|
147
|
|
- $token_name
|
148
|
|
- );
|
149
|
|
-
|
150
|
|
- // Email invalide
|
151
|
|
- $this->procedure_registration_failure(
|
152
|
|
- 'raoulc'.time(),
|
153
|
|
- 'raoulb.def4v65sds@gmail',
|
154
|
|
- 'toor',
|
155
|
|
- 'toor',
|
156
|
|
- $token_name
|
|
116
|
+ 'raoulb.def4v65sdsgmail.com'
|
157
|
117
|
);
|
158
|
118
|
}
|
159
|
119
|
|