mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
Reenable Twitter/Media Post tests
This commit is contained in:
parent
f84c696925
commit
204b8b6e49
5 changed files with 135 additions and 117 deletions
|
@ -80,23 +80,4 @@ class UploadTest extends ApiTest
|
|||
self::assertEquals(1, $media->image->h);
|
||||
self::assertNotEmpty($media->image->friendica_preview_url);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the path to a temporary empty PNG image.
|
||||
*
|
||||
* @return string Path
|
||||
*/
|
||||
private function getTempImage()
|
||||
{
|
||||
$tmpFile = tempnam(sys_get_temp_dir(), 'tmp_file');
|
||||
file_put_contents(
|
||||
$tmpFile,
|
||||
base64_decode(
|
||||
// Empty 1x1 px PNG image
|
||||
'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg=='
|
||||
)
|
||||
);
|
||||
|
||||
return $tmpFile;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue