#[Package('buyers-experience')]
class MediaEntityTest extends TestCase
{ /**
* @dataProvider filenameExtensionProvider
*/
public function testGetFilenameIncludingExtension(?string
$file, ?string
$ext, ?string
$expected): void
{ $media =
new MediaEntity();
if ($file) { $media->
setFileName($file);
} if ($ext) { $media->
setFileExtension($ext);
} static::
assertEquals($expected,
$media->
getFileNameIncludingExtension());
} /**
* @return array<string, array{file: ?string, ext: ?string, expected: ?string}>
*/