mirror of
https://github.com/friendica/friendica
synced 2024-06-22 17:29:24 +02:00
27 lines
727 B
PHP
27 lines
727 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Module\Api\GnuSocial\Help;
|
|
|
|
use Friendica\DI;
|
|
use Friendica\Module\Api\GNUSocial\Help\Test;
|
|
use Friendica\Test\src\Module\Api\ApiTest;
|
|
|
|
class TestTest extends ApiTest
|
|
{
|
|
public function testJson()
|
|
{
|
|
$test = new Test(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']);
|
|
$response = $test->run();
|
|
|
|
self::assertEquals('"ok"', $response->getBody());
|
|
}
|
|
|
|
public function testXml()
|
|
{
|
|
$test = new Test(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'xml']);
|
|
$response = $test->run();
|
|
|
|
self::assertxml($response->getBody(), 'ok');
|
|
}
|
|
}
|