mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
chore(tests): UT for LdapCheck service
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -93,13 +93,13 @@ final class CheckImportController extends SimpleControllerBase
|
||||
|
||||
$this->template->addTemplate('results', 'itemshow');
|
||||
$this->template->assign('header', __('Results'));
|
||||
$this->template->assign('results', $data);
|
||||
$this->template->assign('results', $data->getResults());
|
||||
|
||||
return $this->returnJsonResponseData(
|
||||
['template' => $this->template->render(), 'items' => $data['results']],
|
||||
['template' => $this->template->render(), 'items' => $data->getResults()],
|
||||
JsonMessage::JSON_SUCCESS,
|
||||
__u('LDAP connection OK'),
|
||||
[sprintf(__('Objects found: %d'), $data['count'])]
|
||||
[sprintf(__('Objects found: %d'), $data->count())]
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
processException($e);
|
||||
|
||||
Reference in New Issue
Block a user