1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Fixed tests

This commit is contained in:
Eldad Fux 2020-06-22 22:06:57 +03:00
parent fff951c8fb
commit 29c8954b21
2 changed files with 13 additions and 1 deletions

View file

@ -226,7 +226,7 @@ $utopia->post('/v1/account/sessions')
->setStatusCode(Response::STATUS_CODE_CREATED)
;
$response->dynamic($session);
$response->json($session->getArrayCopy());
}
);

View file

@ -21,6 +21,18 @@ class User extends Result
'default' => '',
'example' => 'John Doe',
])
->addRule('registration', [
'type' => 'integer',
'description' => 'User registration date in unix timestamp.',
'default' => false,
'example' => true,
])
->addRule('status', [
'type' => 'integer',
'description' => 'User status. 0 for Unavtivated, 1 for active and 2 is blocked.',
'default' => false,
'example' => true,
])
->addRule('email', [
'type' => 'string',
'description' => 'User email address.',