mirror of
https://github.com/friendica/friendica
synced 2024-11-10 00:23:00 +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()
|
||||
{
|
||||
self::assertEquals('api', BaseApi::getCurrentApplication()['name']);
|
||||
self::assertEquals('api', BasicAuth::getCurrentApplicationToken()['name']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -254,7 +254,7 @@ class ApiTest extends FixtureTest
|
|||
public function testApiSourceWithTwidere()
|
||||
{
|
||||
$_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()
|
||||
{
|
||||
$_REQUEST['source'] = 'source_name';
|
||||
self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']);
|
||||
self::assertEquals('source_name', BasicAuth::getCurrentApplicationToken()['name']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue