This repository was archived by the owner on Dec 2, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Tests/Security/TwoFactor/Provider Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -100,4 +100,13 @@ public function getQRContent_getContentForQrCode_returnUri(): void
100100 $ returnValue = $ this ->authenticator ->getQRContent ($ this ->user );
101101 $ this ->assertEquals ('QRCodeContent ' , $ returnValue );
102102 }
103+
104+ /**
105+ * @test
106+ */
107+ public function generateSecret_getRandomSecretCode_returnString (): void
108+ {
109+ $ returnValue = $ this ->authenticator ->generateSecret ();
110+ $ this ->assertEquals (52 , strlen ($ returnValue ));
111+ }
103112}
Original file line number Diff line number Diff line change @@ -100,4 +100,13 @@ public function getProvisioningUri_getContentForQrCode_returnUri(): void
100100 $ returnValue = $ this ->authenticator ->getQRContent ($ this ->user );
101101 $ this ->assertEquals ('provisioningUri ' , $ returnValue );
102102 }
103+
104+ /**
105+ * @test
106+ */
107+ public function generateSecret_getRandomSecretCode_returnString (): void
108+ {
109+ $ returnValue = $ this ->authenticator ->generateSecret ();
110+ $ this ->assertEquals (52 , strlen ($ returnValue ));
111+ }
103112}
You can’t perform that action at this time.
0 commit comments