mirror of
https://github.com/friendica/friendica
synced 2024-06-24 23:20:35 +02:00
25 lines
510 B
PHP
25 lines
510 B
PHP
|
<?php
|
||
|
|
||
|
namespace Friendica\Test\src\Module\Api\GnuSocial\Help;
|
||
|
|
||
|
use Friendica\Module\Api\GNUSocial\Help\Test;
|
||
|
use Friendica\Test\src\Module\Api\ApiTest;
|
||
|
use Friendica\Test\Util\ApiResponseDouble;
|
||
|
|
||
|
class TestTest extends ApiTest
|
||
|
{
|
||
|
public function testJson()
|
||
|
{
|
||
|
Test::rawContent(['extension' => 'json']);
|
||
|
|
||
|
self::assertEquals('"ok"', ApiResponseDouble::getOutput());
|
||
|
}
|
||
|
|
||
|
public function testXml()
|
||
|
{
|
||
|
Test::rawContent(['extension' => 'xml']);
|
||
|
|
||
|
self::assertxml(ApiResponseDouble::getOutput(), 'ok');
|
||
|
}
|
||
|
}
|