]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Twitter/Users/ShowTest.php
Reenable Twitter/Search test
[friendica.git] / tests / src / Module / Api / Twitter / Users / ShowTest.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 ShowTest extends ApiTest
8 {
9         /**
10          * Test the api_users_show() function.
11          *
12          * @return void
13          */
14         public function testApiUsersShow()
15         {
16                 /*
17                 $result = api_users_show('json');
18                 // We can't use assertSelfUser() here because the user object is missing some properties.
19                 self::assertEquals($this->selfUser['id'], $result['user']['cid']);
20                 self::assertEquals('DFRN', $result['user']['location']);
21                 self::assertEquals($this->selfUser['name'], $result['user']['name']);
22                 self::assertEquals($this->selfUser['nick'], $result['user']['screen_name']);
23                 self::assertTrue($result['user']['verified']);
24                 */
25         }
26
27         /**
28          * Test the api_users_show() function with an XML result.
29          *
30          * @return void
31          */
32         public function testApiUsersShowWithXml()
33         {
34                 // $result = api_users_show('xml');
35                 // self::assertXml($result, 'statuses');
36         }
37 }