Move Api\Help
This commit is contained in:
24
tests/src/Module/Api/GnuSocial/Help/TestTest.php
Normal file
24
tests/src/Module/Api/GnuSocial/Help/TestTest.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user