File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 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)
11351135 $ this ->assertFalse ($ encoder ->needsRehash ($ user ), 'User password needs rehash ' );
11361136 }
11371137
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+
11381159 public function amLoggedInAs (UserInterface $ user , string $ firewallName = 'main ' , $ firewallContext = null )
11391160 {
11401161 $ session = $ this ->grabService ('session ' );
You can’t perform that action at this time.
0 commit comments