Remove obsolete tests

This commit is contained in:
Hypolite Petovan 2020-01-29 23:14:34 -05:00
parent dd24b3bac0
commit 940e4c83cb

View File

@ -3896,58 +3896,6 @@ XML;
$this->markTestIncomplete(); $this->markTestIncomplete();
} }
/**
* Test the api_friendica_profile_show() function.
*
* @return void
*/
public function testApiFriendicaProfileShow()
{
$result = api_friendica_profile_show('json');
// We can't use assertSelfUser() here because the user object is missing some properties.
$this->assertEquals($this->selfUser['id'], $result['$result']['friendica_owner']['cid']);
$this->assertEquals('DFRN', $result['$result']['friendica_owner']['location']);
$this->assertEquals($this->selfUser['name'], $result['$result']['friendica_owner']['name']);
$this->assertEquals($this->selfUser['nick'], $result['$result']['friendica_owner']['screen_name']);
$this->assertEquals('dfrn', $result['$result']['friendica_owner']['network']);
$this->assertTrue($result['$result']['friendica_owner']['verified']);
$this->assertFalse($result['$result']['multi_profiles']);
}
/**
* Test the api_friendica_profile_show() function with a profile ID.
*
* @return void
*/
public function testApiFriendicaProfileShowWithProfileId()
{
$this->markTestIncomplete('We need to add a dataset for this.');
}
/**
* Test the api_friendica_profile_show() function with a wrong profile ID.
*
* @return void
* @expectedException Friendica\Network\HTTPException\BadRequestException
*/
public function testApiFriendicaProfileShowWithWrongProfileId()
{
$_REQUEST['profile_id'] = 666;
api_friendica_profile_show('json');
}
/**
* Test the api_friendica_profile_show() function without an authenticated user.
*
* @return void
* @expectedException Friendica\Network\HTTPException\ForbiddenException
*/
public function testApiFriendicaProfileShowWithoutAuthenticatedUser()
{
$_SESSION['authenticated'] = false;
api_friendica_profile_show('json');
}
/** /**
* Test the api_saved_searches_list() function. * Test the api_saved_searches_list() function.
* *