2021-11-12 22:03:41 +01:00
|
|
|
<?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()
|
|
|
|
{
|
2021-11-19 13:23:23 +01:00
|
|
|
$test = new Test(['extension' => 'json']);
|
2021-11-14 23:35:01 +01:00
|
|
|
$test->rawContent();
|
2021-11-12 22:03:41 +01:00
|
|
|
|
|
|
|
self::assertEquals('"ok"', ApiResponseDouble::getOutput());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testXml()
|
|
|
|
{
|
2021-11-19 13:23:23 +01:00
|
|
|
$test = new Test(['extension' => 'xml']);
|
2021-11-14 23:35:01 +01:00
|
|
|
$test->rawContent();
|
2021-11-12 22:03:41 +01:00
|
|
|
|
|
|
|
self::assertxml(ApiResponseDouble::getOutput(), 'ok');
|
|
|
|
}
|
|
|
|
}
|