*/
public function testApiSource()
{
- self::assertEquals('api', BaseApi::getCurrentApplication()['name']);
+ self::assertEquals('api', BasicAuth::getCurrentApplicationToken()['name']);
}
/**
public function testApiSourceWithTwidere()
{
$_SERVER['HTTP_USER_AGENT'] = 'Twidere';
- self::assertEquals('Twidere', BaseApi::getCurrentApplication()['name']);
+ self::assertEquals('Twidere', BasicAuth::getCurrentApplicationToken()['name']);
}
/**
public function testApiSourceWithGet()
{
$_REQUEST['source'] = 'source_name';
- self::assertEquals('source_name', BaseApi::getCurrentApplication()['name']);
+ self::assertEquals('source_name', BasicAuth::getCurrentApplicationToken()['name']);
}
/**