mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-20 23:36:50 +01:00
chore: Create tests for AccountFileService
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -65,10 +65,10 @@ final class SearchController extends TagBase
|
||||
*/
|
||||
private function buildSearchData(): ItemSearchData
|
||||
{
|
||||
$itemSearchData = new ItemSearchData();
|
||||
$itemSearchData->setSeachString($this->apiService->getParamString('text'));
|
||||
$itemSearchData->setLimitCount($this->apiService->getParamInt('count', false, self::SEARCH_COUNT_ITEMS));
|
||||
|
||||
return $itemSearchData;
|
||||
return new ItemSearchData(
|
||||
$this->apiService->getParamString('text'),
|
||||
0,
|
||||
$this->apiService->getParamInt('count', false, self::SEARCH_COUNT_ITEMS)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user