fixing some tests

This commit is contained in:
Antonio Ramirez
2016-12-11 04:17:55 +01:00
parent d8e517a9d1
commit 0834ad6ca0
40 changed files with 1153 additions and 23 deletions

View File

@ -0,0 +1,32 @@
<?php
use Da\User\Model\Token;
$time = time();
return [
'confirmation' => [
'user_id' => 2,
'code' => 'NO2aCmBIjFQX624xmAc3VBu7Th3NJoa6',
'type' => Token::TYPE_CONFIRMATION,
'created_at' => $time,
],
'expired_confirmation' => [
'user_id' => 3,
'code' => 'qxYa315rqRgCOjYGk82GFHMEAV3T82AX',
'type' => Token::TYPE_CONFIRMATION,
'created_at' => $time - 86401,
],
'expired_recovery' => [
'user_id' => 5,
'code' => 'a5839d0e73b9c525942c2f59e88c1aaf',
'type' => Token::TYPE_RECOVERY,
'created_at' => $time - 21601,
],
'recovery' => [
'user_id' => 6,
'code' => '6f5d0dad53ef73e6ba6f01a441c0e602',
'type' => Token::TYPE_RECOVERY,
'created_at' => $time,
],
];