3 namespace Friendica\Test\src\Module\Api\Twitter\Users;
5 use Friendica\Test\src\Module\Api\ApiTest;
7 class ShowTest extends ApiTest
10 * Test the api_users_show() function.
14 public function testApiUsersShow()
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']);
28 * Test the api_users_show() function with an XML result.
32 public function testApiUsersShowWithXml()
34 // $result = api_users_show('xml');
35 // self::assertXml($result, 'statuses');