Neos\Flow\Tests\Unit\Property\TypeConverter\MediaTypeConverterTest::convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid PHP Method

convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid() public method

    public function convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid()
    {
        $this->mockPropertyMappingConfiguration->expects($this->atLeastOnce())->method('getConfigurationValue')->with(MediaTypeConverterInterface::class, MediaTypeConverterInterface::CONFIGURATION_MEDIA_TYPE)->will($this->returnValue('someInvalidMediaType'));
        $actualResult = $this->mediaTypeConverter->convertFrom('{"jsonArgument":"jsonValue"}', 'array', [], $this->mockPropertyMappingConfiguration);
        $expectedResult = [];
        $this->assertSame($expectedResult, $actualResult);
    }