static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
static::
assertEquals(MediaException::MEDIA_TYPE_NOT_LOADED,
$exception->
getErrorCode());
static::
assertEquals('Media type, for id media-id, not loaded',
$exception->
getMessage());
static::
assertEquals(['mediaId' =>
$mediaId],
$exception->
getParameters());
} public function testThumbnailNotSupported(): void
{ $mediaId = 'media-id';
$exception = MediaException::
thumbnailNotSupported($mediaId);
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
static::
assertEquals(MediaException::MEDIA_FILE_NOT_SUPPORTED_FOR_THUMBNAIL,
$exception->
getErrorCode());
static::
assertEquals('The file for media object with id media-id is not supported for creating thumbnails.',
$exception->
getMessage());
static::
assertEquals(['mediaId' =>
$mediaId],
$exception->
getParameters());
} public function testThumbnailCouldNotBeSaved(): void
{ $url = 'http://url';