diff options
Diffstat (limited to 'lib/Command/Test.php')
-rw-r--r-- | lib/Command/Test.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Command/Test.php b/lib/Command/Test.php index ec65d06..c227b99 100644 --- a/lib/Command/Test.php +++ b/lib/Command/Test.php @@ -554,7 +554,13 @@ class Test extends ExtendedBase { $request = new SearchRequest(); $request->setSearch($search); - $searchResult = $testPlatform->searchDocuments($testProvider, $access, $request); + + $searchResult = new SearchResult($request); + $searchResult->setProvider($testProvider); + $searchResult->setPlatform($testPlatform); + + $testPlatform->searchRequest($searchResult, $access); + $this->output( $output, '(result: ' . $searchResult->getCount() . ', expected: ' . json_encode($expected) . ')', |