File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1022,6 +1022,24 @@ public function seeRememberedAuthentication()
1022
1022
$ this ->assertTrue ($ security ->isGranted ('IS_AUTHENTICATED_REMEMBERED ' ), 'There is no authenticated user ' );
1023
1023
}
1024
1024
1025
+ /**
1026
+ * Check that user is not authenticated with the 'remember me' option.
1027
+ *
1028
+ * ```php
1029
+ * <?php
1030
+ * $I->dontSeeRememberedAuthentication();
1031
+ * ```
1032
+ */
1033
+ public function dontSeeRememberedAuthentication ()
1034
+ {
1035
+ $ security = $ this ->grabService ('security.helper ' );
1036
+
1037
+ $ this ->assertFalse (
1038
+ $ security ->isGranted ('IS_AUTHENTICATED_REMEMBERED ' ),
1039
+ 'There is an user authenticated '
1040
+ );
1041
+ }
1042
+
1025
1043
/**
1026
1044
* Check that the current user has a role
1027
1045
*
You can’t perform that action at this time.
0 commit comments