'uploaded_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_FORMAT
),
'created_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_FORMAT
),
]);
$connection->
insert('user',
[ 'id' =>
$userId,
'first_name' =>
$username,
'last_name' => '',
'email' => "{
$email}@example.com",
'username' =>
$username,
'password' => TestDefaults::HASHED_PASSWORD,
'locale_id' => self::
getLocaleOfSystemLanguage($connection),
'active' => 1,
'admin' => 0,
'avatar_id' =>
$avatarId,
'created_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_FORMAT
),
]);
$roleId = self::
buildRole($permissions,
$connection);
if ($roleId) { $connection->
insert( 'acl_user_role',
[