'this is some content'
),
true,
null,
];
yield 'upload without filename' =>
[ false,
new Request([ 'extension' => FileTypes::PDF,
]),
true,
new DocumentGenerationException('Parameter "fileName" is missing'
),
];
yield 'upload non static document' =>
[ true,
new Request(),
false,
new DocumentGenerationException('This document is dynamically generated and cannot be overwritten'
),
];
yield 'upload with existed media' =>
[ true,