File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -1135,6 +1135,27 @@ public function seeUserPasswordDoesNotNeedRehash(UserInterface $user = null)
1135
1135
$ this ->assertFalse ($ encoder ->needsRehash ($ user ), 'User password needs rehash ' );
1136
1136
}
1137
1137
1138
+ /**
1139
+ * Verifies that there are no errors bound to the submitted form.
1140
+ *
1141
+ * ``` php
1142
+ * <?php
1143
+ * $I->dontSeeFormErrors();
1144
+ * ```
1145
+ *
1146
+ * @return void
1147
+ */
1148
+ public function dontSeeFormErrors ()
1149
+ {
1150
+ $ formCollector = $ this ->grabCollector ('form ' , __FUNCTION__ );
1151
+
1152
+ $ this ->assertEquals (
1153
+ 0 ,
1154
+ $ formCollector ->getData ()->offsetGet ('nb_errors ' ),
1155
+ 'Expecting that the form does not have errors, but there were! '
1156
+ );
1157
+ }
1158
+
1138
1159
public function amLoggedInAs (UserInterface $ user , string $ firewallName = 'main ' , $ firewallContext = null )
1139
1160
{
1140
1161
$ session = $ this ->grabService ('session ' );
You can’t perform that action at this time.
0 commit comments