mirror of
https://github.com/friendica/friendica
synced 2025-04-25 14:30:10 +00:00
Move API DirectMessage tests
This commit is contained in:
parent
f0b97d8e13
commit
6412484fa6
5 changed files with 99 additions and 83 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue