]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Twitter/Users/SearchTest.php
ce088a541285ad6e68bbb10f2b5bd8e67f20b148
[friendica.git] / tests / src / Module / Api / Twitter / Users / SearchTest.php
1 <?php
2
3 namespace Friendica\Test\src\Module\Api\Twitter\Users;
4
5 use Friendica\Test\src\Module\Api\ApiTest;
6
7 class SearchTest extends ApiTest
8 {
9         /**
10          * Test the api_users_search() function.
11          *
12          * @return void
13          */
14         public function testApiUsersSearch()
15         {
16                 // $_GET['q'] = 'othercontact';
17                 // $result    = api_users_search('json');
18                 // self::assertOtherUser($result['users'][0]);
19         }
20
21         /**
22          * Test the api_users_search() function with an XML result.
23          *
24          * @return void
25          */
26         public function testApiUsersSearchWithXml()
27         {
28                 // $_GET['q'] = 'othercontact';
29                 // $result    = api_users_search('xml');
30                 // self::assertXml($result, 'users');
31         }
32
33         /**
34          * Test the api_users_search() function without a GET q parameter.
35          *
36          * @return void
37          */
38         public function testApiUsersSearchWithoutQuery()
39         {
40                 // $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
41                 // api_users_search('json');
42         }
43 }