mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Перенесены тесты со старого authserver, исправлены ошибки в коде
This commit is contained in:
@@ -120,4 +120,17 @@ return [
|
||||
'created_at' => 1470499952,
|
||||
'updated_at' => 1470499952,
|
||||
],
|
||||
'banned-account' => [
|
||||
'id' => 10,
|
||||
'uuid' => 'd2e7360e-50cf-4b9b-baa0-c4440a150795',
|
||||
'username' => 'Banned',
|
||||
'email' => 'banned@ely.by',
|
||||
'password_hash' => '$2y$13$2rYkap5T6jG8z/mMK8a3Ou6aZxJcmAaTha6FEuujvHEmybSHRzW5e', # password_0
|
||||
'password_hash_strategy' => \common\models\Account::PASS_HASH_STRATEGY_YII2,
|
||||
'lang' => 'en',
|
||||
'status' => \common\models\Account::STATUS_BANNED,
|
||||
'rules_agreement_version' => \common\LATEST_RULES_VERSION,
|
||||
'created_at' => 1472682343,
|
||||
'updated_at' => 1472682343,
|
||||
],
|
||||
];
|
||||
|
||||
@@ -1,10 +1,24 @@
|
||||
<?php
|
||||
return [
|
||||
[
|
||||
'admin-token' => [
|
||||
'access_token' => 'e7bb6648-2183-4981-9b86-eba5e7f87b42',
|
||||
'client_token' => '6f380440-0c05-47bd-b7c6-d011f1b5308f',
|
||||
'account_id' => 1,
|
||||
'created_at' => time() - 10,
|
||||
'updated_at' => time() - 10,
|
||||
],
|
||||
'expired-token' => [
|
||||
'access_token' => '6042634a-a1e2-4aed-866c-c661fe4e63e2',
|
||||
'client_token' => '47fb164a-2332-42c1-8bad-549e67bb210c',
|
||||
'account_id' => 1,
|
||||
'created_at' => 1472423530,
|
||||
'updated_at' => 1472423530,
|
||||
],
|
||||
'banned-token' => [
|
||||
'access_token' => '918ecb41-616c-40ee-a7d2-0b0ef0d0d732',
|
||||
'client_token' => '6042634a-a1e2-4aed-866c-c661fe4e63e2',
|
||||
'account_id' => 10,
|
||||
'created_at' => time() - 10,
|
||||
'updated_at' => time() - 10,
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user