mirror of
https://github.com/friendica/friendica
synced 2025-01-03 15:22:19 +00:00
Tests
This commit is contained in:
parent
dfd63493b2
commit
c412a1dfc5
1 changed files with 3 additions and 3 deletions
|
@ -243,7 +243,7 @@ class ApiTest extends FixtureTest
|
||||||
*/
|
*/
|
||||||
public function testApiSource()
|
public function testApiSource()
|
||||||
{
|
{
|
||||||
self::assertEquals('api', BaseApi::getCurrentApplication()['name']);
|
self::assertEquals('api', BasicAuth::getCurrentApplicationToken()['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -254,7 +254,7 @@ class ApiTest extends FixtureTest
|
||||||
public function testApiSourceWithTwidere()
|
public function testApiSourceWithTwidere()
|
||||||
{
|
{
|
||||||
$_SERVER['HTTP_USER_AGENT'] = 'Twidere';
|
$_SERVER['HTTP_USER_AGENT'] = 'Twidere';
|
||||||
self::assertEquals('Twidere', BaseApi::getCurrentApplication()['name']);
|
self::assertEquals('Twidere', BasicAuth::getCurrentApplicationToken()['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -265,7 +265,7 @@ class ApiTest extends FixtureTest
|
||||||
public function testApiSourceWithGet()
|
public function testApiSourceWithGet()
|
||||||
{
|
{
|
||||||
$_REQUEST['source'] = 'source_name';
|
$_REQUEST['source'] = 'source_name';
|
||||||
self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']);
|
self::assertEquals('source_name', BasicAuth::getCurrentApplicationToken()['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue