Move Api\Help

This commit is contained in:
Philipp 2021-11-12 22:03:41 +01:00
parent 9482ef3c34
commit 0757c00d52
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 39 additions and 24 deletions

View file

@ -0,0 +1,24 @@
<?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');
}
}