Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F120838302
VerificationCodeTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
544 B
Referenced Files
None
Subscribers
None
VerificationCodeTest.php
View Options
<?php
namespace
Tests\Unit
;
use
App\Utils
;
use
App\VerificationCode
;
use
Tests\TestCase
;
class
VerificationCodeTest
extends
TestCase
{
/**
* Test VerificationCode::generateShortCode()
*/
public
function
testGenerateShortCode
()
{
$code
=
VerificationCode
::
generateShortCode
();
$code_length
=
env
(
'VERIFICATION_CODE_LENGTH'
,
VerificationCode
::
SHORTCODE_LENGTH
);
$this
->
assertTrue
(
strlen
(
$code
)
===
$code_length
);
$this
->
assertTrue
(
strspn
(
$code
,
Utils
::
CHARS
)
===
strlen
(
$code
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Apr 24, 1:57 PM (1 w, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18830099
Default Alt Text
VerificationCodeTest.php (544 B)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline