Make API testable & move PhotoAlbum tests to new destination
This commit is contained in:
parent
a0c5c91886
commit
e477cf215d
10 changed files with 174 additions and 96 deletions
|
|
@ -3178,97 +3178,6 @@ class ApiTest extends FixtureTest
|
|||
$this->markTestIncomplete('exit() kills phpunit as well');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumDelete()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// api_fr_photoalbum_delete('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function with an album name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumDeleteWithAlbum()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// $_REQUEST['album'] = 'album_name';
|
||||
// api_fr_photoalbum_delete('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function with an album name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumDeleteWithValidAlbum()
|
||||
{
|
||||
$this->markTestIncomplete('We need to add a dataset for this.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumUpdate()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// api_fr_photoalbum_update('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function with an album name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumUpdateWithAlbum()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// $_REQUEST['album'] = 'album_name';
|
||||
// api_fr_photoalbum_update('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function with an album name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumUpdateWithAlbumAndNewAlbum()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// $_REQUEST['album'] = 'album_name';
|
||||
// $_REQUEST['album_new'] = 'album_name';
|
||||
// api_fr_photoalbum_update('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_update() function without an authenticated user.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumUpdateWithoutAuthenticatedUser()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
|
||||
// $_SESSION['authenticated'] = false;
|
||||
// api_fr_photoalbum_update('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photoalbum_delete() function with an album name.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiFrPhotoalbumUpdateWithValidAlbum()
|
||||
{
|
||||
$this->markTestIncomplete('We need to add a dataset for this.');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_fr_photos_list() function.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue