mirror of
https://github.com/friendica/friendica
synced 2024-12-22 19:20:17 +00:00
Partially fixing source detection
This commit is contained in:
parent
a86dee8e59
commit
c61776aba6
1 changed files with 2 additions and 2 deletions
|
@ -243,7 +243,7 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiSource()
|
||||
{
|
||||
self::assertEquals('API', BaseApi::getCurrentApplication()['name']);
|
||||
self::assertEquals('api', BaseApi::getCurrentApplication()['name']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -264,7 +264,7 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiSourceWithGet()
|
||||
{
|
||||
$_GET['source'] = 'source_name';
|
||||
$_REQUEST['source'] = 'source_name';
|
||||
self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue