mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 22:34:26 +02:00
Move all (inactive) API endpoint specific tests to new structure
This commit is contained in:
parent
5aad46c7fb
commit
6fc2eeaeaf
23 changed files with 1122 additions and 951 deletions
30
tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php
Normal file
30
tests/src/Module/Api/GnuSocial/GnuSocial/ConfigTest.php
Normal file
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Module\Api\GnuSocial\GnuSocial;
|
||||
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
|
||||
class ConfigTest extends ApiTest
|
||||
{
|
||||
/**
|
||||
* Test the api_statusnet_config() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusnetConfig()
|
||||
{
|
||||
/*
|
||||
$result = api_statusnet_config('json');
|
||||
self::assertEquals('localhost', $result['config']['site']['server']);
|
||||
self::assertEquals('default', $result['config']['site']['theme']);
|
||||
self::assertEquals(DI::baseUrl() . '/images/friendica-64.png', $result['config']['site']['logo']);
|
||||
self::assertTrue($result['config']['site']['fancy']);
|
||||
self::assertEquals('en', $result['config']['site']['language']);
|
||||
self::assertEquals('UTC', $result['config']['site']['timezone']);
|
||||
self::assertEquals(200000, $result['config']['site']['textlimit']);
|
||||
self::assertEquals('false', $result['config']['site']['private']);
|
||||
self::assertEquals('false', $result['config']['site']['ssl']);
|
||||
self::assertEquals(30, $result['config']['site']['shorturllength']);
|
||||
*/
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue