mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Fix tests
This commit is contained in:
parent
ce578a7745
commit
f3d7d610e8
9 changed files with 27 additions and 20 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
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;
|
||||
use Friendica\Test\Util\ApiResponseDouble;
|
||||
|
@ -10,7 +11,7 @@ class TestTest extends ApiTest
|
|||
{
|
||||
public function testJson()
|
||||
{
|
||||
$test = new Test(['extension' => 'json']);
|
||||
$test = new Test(DI::l10n(), ['extension' => 'json']);
|
||||
$test->rawContent();
|
||||
|
||||
self::assertEquals('"ok"', ApiResponseDouble::getOutput());
|
||||
|
@ -18,7 +19,7 @@ class TestTest extends ApiTest
|
|||
|
||||
public function testXml()
|
||||
{
|
||||
$test = new Test(['extension' => 'xml']);
|
||||
$test = new Test(DI::l10n(), ['extension' => 'xml']);
|
||||
$test->rawContent();
|
||||
|
||||
self::assertxml(ApiResponseDouble::getOutput(), 'ok');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue