static::
assertEquals(Response::HTTP_NOT_FOUND,
$exception->
getStatusCode());
static::
assertEquals(MediaException::MEDIA_FOLDER_NOT_FOUND,
$exception->
getErrorCode());
static::
assertEquals('Could not find media folder with id: "folder-id"',
$exception->
getMessage());
static::
assertEquals(['folderId' =>
$folderId],
$exception->
getParameters());
} public function testMediaFolderNameNotFound(): void
{ $folderName = 'folder-name';
$exception = MediaException::
mediaFolderNameNotFound($folderName);
static::
assertEquals(Response::HTTP_NOT_FOUND,
$exception->
getStatusCode());
static::
assertEquals(MediaException::MEDIA_FOLDER_NAME_NOT_FOUND,
$exception->
getErrorCode());
static::
assertEquals('Could not find a folder with the name: "folder-name"',
$exception->
getMessage());
static::
assertEquals(['folderName' =>
$folderName],
$exception->
getParameters());
} public function testFileExtensionNotSupported(): void
{ $mediaId = 'media-id';
$extension = 'extension';