1
0
Fork 0

Migrate API\StatusNetVersion

This commit is contained in:
Philipp Holzer 2021-11-12 22:12:28 +01:00
parent 829c43ba3b
commit de1e839a2b
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
2 changed files with 19 additions and 12 deletions

View file

@ -2792,18 +2792,6 @@ class ApiTest extends FixtureTest
self::assertEquals(30, $result['config']['site']['shorturllength']);
}
/**
* Test the api_statusnet_version() function.
*
* @return void
*/
public function testApiStatusnetVersion()
{
// @todo How to test the new API?
// $result = api_statusnet_version('json');
// self::assertEquals('0.9.7', $result['version']);
}
/**
* Test the api_direct_messages_new() function.
*

View file

@ -0,0 +1,19 @@
<?php
namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial;
use Friendica\Module\Api\GNUSocial\GNUSocial\Version;
use Friendica\Test\src\Module\Api\ApiTest;
use Friendica\Test\Util\ApiResponseDouble;
class VersionTest extends ApiTest
{
public function test()
{
Version::rawContent(['extension' => 'json']);
$result = json_decode(ApiResponseDouble::getOutput());
self::assertEquals('0.9.7', $result);
}
}