- /**
- * Test the api_friendica_remoteauth() function.
- *
- * @return void
- * @expectedException Friendica\Network\HTTPException\BadRequestException
- */
- public function testApiFriendicaRemoteauth()
- {
- api_friendica_remoteauth();
- }
-
- /**
- * Test the api_friendica_remoteauth() function with an URL.
- *
- * @return void
- * @expectedException Friendica\Network\HTTPException\BadRequestException
- */
- public function testApiFriendicaRemoteauthWithUrl()
- {
- $_GET['url'] = 'url';
- $_GET['c_url'] = 'url';
- api_friendica_remoteauth();
- }
-
- /**
- * Test the api_friendica_remoteauth() function with a correct URL.
- *
- * @return void
- */
- public function testApiFriendicaRemoteauthWithCorrectUrl()
- {
- $this->markTestIncomplete("We can't use an assertion here because of App->redirect().");
- $_GET['url'] = 'url';
- $_GET['c_url'] = $this->selfUser['nurl'];
- api_friendica_remoteauth();
- }
-
- /**
- * Test the api_share_as_retweet() function.
- *
- * @return void
- */
- public function testApiShareAsRetweet()
- {
- $item = ['body' => '', 'author-id' => 1, 'owner-id' => 1];
- $result = api_share_as_retweet($item);
- self::assertFalse($result);
- }
-