fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-28 01:04:15 +00:00
parent 290f2e87ea
commit 3e37d5f89d

View File

@ -2098,16 +2098,18 @@ final class ApiController extends Controller
*/ */
private function createProfileForAccount(Account $account, RequestAbstract $request) : void private function createProfileForAccount(Account $account, RequestAbstract $request) : void
{ {
// @todo: why do we need the following lines?
if (($request->getDataString('password') ?? '') === '' if (($request->getDataString('password') ?? '') === ''
|| ($request->getDataString('user') ?? '') === '' || ($request->getDataString('user') ?? '') === ''
) { ) {
return; return;
} }
$this->app->moduleManager->get('Profile')->apiProfileCreateDbEntry( $request->setData('iaccount-idlist', $account->id);
new \Modules\Profile\Models\Profile($account),
$request $internalResponse = new HttpResponse();
);
$this->app->moduleManager->get('Profile', 'Api')->apiProfileCreate($request, $internalResponse);
} }
/** /**