mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-19 01:43:44 +03:00
Tests: Make test token 32 characters to match valid length
This commit is contained in:
parent
ec8c052204
commit
04413b9f6c
|
@ -114,7 +114,12 @@ class Test_Auth extends WP_UnitTestCase {
|
|||
'non-existent-token' => array( false ), // Simulates `get_post_meta()` return value.
|
||||
'wrong-data-type' => array( 'this string is not an array' ),
|
||||
'wrong-array-items' => array( 'this' => "doesn't have `value` and `expiration` items" ),
|
||||
'invalid-value' => array( 'Valid tokens will never contain special characters like !@#$%^&*()' ),
|
||||
|
||||
'invalid-value' => array(
|
||||
// Must have TOKEN_LENGTH characters, otherwise could be rejected for the wrong reason.
|
||||
'value' => 'Has special characters !@#$%^&*)',
|
||||
'expiration' => time() + MINUTE_IN_SECONDS,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue