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,10 @@
<?php
$time = time();
return [
'user' => [
'user_id' => 1,
'name' => 'John Doe',
],
];

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,
],
];

View File

@ -0,0 +1,59 @@
<?php
$time = time();
return [
'user' => [
'username' => 'user',
'email' => 'user@example.com',
'password_hash' => '$2y$13$qY.ImaYBppt66qez6B31QO92jc5DYVRzo5NxM1ivItkW74WsSG6Ui',
'auth_key' => '39HU0m5lpjWtqstFVGFjj6lFb7UZDeRq',
'created_at' => $time,
'updated_at' => $time,
'confirmed_at' => $time,
],
'unconfirmed' => [
'username' => 'joe',
'email' => 'joe@example.com',
'password_hash' => '$2y$13$CIH1LSMPzU9xDCywt3QO8uovAu2axp8hwuXVa72oI.1G/USsGyMBS',
'auth_key' => 'mhh1A6KfqQLmHP-MiWN0WB0M90Q2u5OE',
'created_at' => $time,
'updated_at' => $time,
],
'unconfirmed_with_expired_token' => [
'username' => 'john',
'email' => 'john@example.com',
'password_hash' => '$2y$13$qY.ImaYBppt66qez6B31QO92jc5DYVRzo5NxM1ivItkW74WsSG6Ui',
'auth_key' => 'h6OS9csJbZEOW59ZILmJxU6bCiqVno9A',
'created_at' => $time - 86401,
'updated_at' => $time - 86401,
],
'blocked' => [
'username' => 'steven',
'email' => 'steven@example.com',
'password_hash' => '$2y$13$qY.ImaYBppt66qez6B31QO92jc5DYVRzo5NxM1ivItkW74WsSG6Ui',
'auth_key' => 'TnXTrtLdj-YJBlG2A6jFHJreKgbsLYCa',
'created_at' => $time,
'updated_at' => $time,
'blocked_at' => $time,
'confirmed_at' => $time,
],
'user_with_expired_recovery_token' => [
'username' => 'andrew',
'email' => 'andrew@example.com',
'password_hash' => '$2y$13$qY.ImaYBppt66qez6B31QO92jc5DYVRzo5NxM1ivItkW74WsSG6Ui',
'auth_key' => 'qxYa315rqRgCOjYGk82GFHMEAV3T82AX',
'created_at' => $time - 21601,
'updated_at' => $time - 21601,
'confirmed_at' => $time - 21601,
],
'user_with_recovery_token' => [
'username' => 'alex',
'email' => 'alex@example.com',
'password_hash' => '$2y$13$qY.ImaYBppt66qez6B31QO92jc5DYVRzo5NxM1ivItkW74WsSG6Ui',
'auth_key' => 'zQh1A65We0AmHPOMiWN0WB0M90Q24ziU',
'created_at' => $time,
'updated_at' => $time,
'confirmed_at' => $time,
],
];