Add MessageDirect\Search tests

This commit is contained in:
Philipp 2021-12-27 20:02:37 +01:00
parent c5969de66d
commit 5d69f7411d
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 101 additions and 2 deletions

View file

@ -73,8 +73,6 @@ class Search extends BaseApi
// message if nothing was found
if (!DBA::isResult($mails)) {
$success = ['success' => false, 'search_results' => 'problem with query'];
} elseif (count($mails) == 0) {
$success = ['success' => false, 'search_results' => 'nothing found'];
} else {
$ret = [];