PHP Class Neos\Flow\Tests\Unit\Property\TypeConverter\MediaTypeConverterTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$mediaTypeConverter Neos\Flow\Property\TypeConverter\MediaTypeConverter
$mockPropertyMappingConfiguration Neos\Flow\Property\PropertyMappingConfigurationInterface | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method Description
contentTypesBodiesAndExpectedUnifiedArguments ( ) Data provider
convertExpectsJsonAsDefault ( )
convertReturnsEmptyArrayIfBodyCantBeParsed ( )
convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid ( )
convertTests ( $mediaType, $requestBody, array $expectedResult )
setUp ( ) Set up this test case

Method Details

contentTypesBodiesAndExpectedUnifiedArguments() public method

Data provider

convertExpectsJsonAsDefault() public method

convertReturnsEmptyArrayIfBodyCantBeParsed() public method

convertReturnsEmptyArrayIfGivenMediaTypeIsInvalid() public method

convertTests() public method

public convertTests ( $mediaType, $requestBody, array $expectedResult )
$expectedResult array

setUp() public method

Set up this test case
public setUp ( )

Property Details

$mediaTypeConverter protected property

protected MediaTypeConverter,Neos\Flow\Property\TypeConverter $mediaTypeConverter
return Neos\Flow\Property\TypeConverter\MediaTypeConverter

$mockPropertyMappingConfiguration protected property

protected PropertyMappingConfigurationInterface,Neos\Flow\Property|PHPUnit_Framework_MockObject_MockObject $mockPropertyMappingConfiguration
return Neos\Flow\Property\PropertyMappingConfigurationInterface | PHPUnit_Framework_MockObject_MockObject