Move API DirectMessage tests

This commit is contained in:
Philipp
2021-12-30 21:07:20 +01:00
parent f0b97d8e13
commit 6412484fa6
5 changed files with 99 additions and 83 deletions

View File

@@ -52,7 +52,7 @@ class SearchTest extends ApiTest
$directMessage = new DirectMessage(new NullLogger(), DI::dba(), DI::twitterUser());
$search = new Search($directMessage, DI::dba(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::GET]);
$response = $search->run(['searchstring' => 'test']);
$response = $search->run(['searchstring' => 'item_body']);
$json = $this->toJson($response);