mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Move Api\Help
This commit is contained in:
parent
9482ef3c34
commit
0757c00d52
3 changed files with 39 additions and 24 deletions
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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue