mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
25 lines
600 B
PHP
25 lines
600 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* For detailed copyright and license information, please view the
|
|
* LICENSE file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Flarum\Tests\integration;
|
|
|
|
trait RetrievesAuthorizedUsers
|
|
{
|
|
protected function normalUser(): array
|
|
{
|
|
return [
|
|
'id' => 2,
|
|
'username' => 'normal',
|
|
'password' => '$2y$10$LO59tiT7uggl6Oe23o/O6.utnF6ipngYjvMvaxo1TciKqBttDNKim', // BCrypt hash for "too-obscure"
|
|
'email' => 'normal@machine.local',
|
|
'is_email_confirmed' => 1,
|
|
];
|
|
}
|
|
}
|