platform/api/symfony/Component/HttpKernel/Tests/Controller/ArgumentResolver/RequestPayloadValueResolverTest.yaml
2024-09-02 10:44:11 -07:00

288 lines
8.4 KiB
YAML

name: RequestPayloadValueResolverTest
class_comment: null
dependencies:
- name: TestCase
type: class
source: PHPUnit\Framework\TestCase
- name: Request
type: class
source: Symfony\Component\HttpFoundation\Request
- name: MapQueryString
type: class
source: Symfony\Component\HttpKernel\Attribute\MapQueryString
- name: MapRequestPayload
type: class
source: Symfony\Component\HttpKernel\Attribute\MapRequestPayload
- name: ValueResolver
type: class
source: Symfony\Component\HttpKernel\Attribute\ValueResolver
- name: RequestPayloadValueResolver
type: class
source: Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver
- name: ArgumentMetadata
type: class
source: Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
- name: ControllerArgumentsEvent
type: class
source: Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent
- name: HttpException
type: class
source: Symfony\Component\HttpKernel\Exception\HttpException
- name: NearMissValueResolverException
type: class
source: Symfony\Component\HttpKernel\Exception\NearMissValueResolverException
- name: HttpKernelInterface
type: class
source: Symfony\Component\HttpKernel\HttpKernelInterface
- name: JsonEncoder
type: class
source: Symfony\Component\Serializer\Encoder\JsonEncoder
- name: XmlEncoder
type: class
source: Symfony\Component\Serializer\Encoder\XmlEncoder
- name: NotNormalizableValueException
type: class
source: Symfony\Component\Serializer\Exception\NotNormalizableValueException
- name: PartialDenormalizationException
type: class
source: Symfony\Component\Serializer\Exception\PartialDenormalizationException
- name: ArrayDenormalizer
type: class
source: Symfony\Component\Serializer\Normalizer\ArrayDenormalizer
- name: DenormalizerInterface
type: class
source: Symfony\Component\Serializer\Normalizer\DenormalizerInterface
- name: ObjectNormalizer
type: class
source: Symfony\Component\Serializer\Normalizer\ObjectNormalizer
- name: Serializer
type: class
source: Symfony\Component\Serializer\Serializer
- name: SerializerInterface
type: class
source: Symfony\Component\Serializer\SerializerInterface
- name: Assert
type: class
source: Symfony\Component\Validator\Constraints
- name: ConstraintViolation
type: class
source: Symfony\Component\Validator\ConstraintViolation
- name: ConstraintViolationList
type: class
source: Symfony\Component\Validator\ConstraintViolationList
- name: ValidationFailedException
type: class
source: Symfony\Component\Validator\Exception\ValidationFailedException
- name: ValidatorInterface
type: class
source: Symfony\Component\Validator\Validator\ValidatorInterface
- name: ValidatorBuilder
type: class
source: Symfony\Component\Validator\ValidatorBuilder
properties: []
methods:
- name: testNotTypedArgument
visibility: public
parameters: []
comment: null
- name: testDefaultValueArgument
visibility: public
parameters: []
comment: null
- name: testQueryDefaultValueArgument
visibility: public
parameters: []
comment: null
- name: testNullableValueArgument
visibility: public
parameters: []
comment: null
- name: testQueryNullableValueArgument
visibility: public
parameters: []
comment: null
- name: testNullPayloadAndNotDefaultOrNullableArgument
visibility: public
parameters: []
comment: null
- name: testQueryNullPayloadAndNotDefaultOrNullableArgument
visibility: public
parameters: []
comment: null
- name: testWithoutValidatorAndCouldNotDenormalize
visibility: public
parameters: []
comment: null
- name: testValidationNotPassed
visibility: public
parameters: []
comment: null
- name: testValidationNotPerformedWhenPartialDenormalizationReturnsViolation
visibility: public
parameters: []
comment: null
- name: testUnsupportedMedia
visibility: public
parameters: []
comment: null
- name: testRequestContentValidationPassed
visibility: public
parameters: []
comment: null
- name: testRequestContentWithUntypedErrors
visibility: public
parameters:
- name: types
comment: '# * @testWith [null]
# * [[]]'
- name: testQueryStringValidationPassed
visibility: public
parameters: []
comment: null
- name: testRequestInputValidationPassed
visibility: public
parameters: []
comment: null
- name: testRequestArrayDenormalization
visibility: public
parameters: []
comment: null
- name: testItThrowsOnMissingAttributeType
visibility: public
parameters: []
comment: null
- name: testItThrowsOnInvalidAttributeTypeUsage
visibility: public
parameters: []
comment: null
- name: testItThrowsOnVariadicArgument
visibility: public
parameters: []
comment: null
- name: testAcceptFormatPassed
visibility: public
parameters:
- name: acceptFormat
- name: contentType
- name: content
comment: '# * @dataProvider provideMatchedFormatContext'
- name: provideMatchedFormatContext
visibility: public
parameters: []
comment: null
- name: testAcceptFormatNotPassed
visibility: public
parameters:
- name: acceptFormat
- name: contentType
- name: content
- name: expectedExceptionMessage
comment: '# * @dataProvider provideMismatchedFormatContext'
- name: provideMismatchedFormatContext
visibility: public
parameters: []
comment: null
- name: testValidationGroupsPassed
visibility: public
parameters:
- name: method
- name: attribute
comment: '# * @dataProvider provideValidationGroupsOnManyTypes'
- name: testValidationGroupsNotPassed
visibility: public
parameters:
- name: method
- name: attribute
comment: '# * @dataProvider provideValidationGroupsOnManyTypes'
- name: provideValidationGroupsOnManyTypes
visibility: public
parameters: []
comment: null
- name: testQueryValidationErrorCustomStatusCode
visibility: public
parameters: []
comment: null
- name: testRequestPayloadValidationErrorCustomStatusCode
visibility: public
parameters: []
comment: null
- name: testBoolArgumentInQueryString
visibility: public
parameters:
- name: expectedValue
- name: parameterValue
comment: '# * @dataProvider provideBoolArgument'
- name: testBoolArgumentInBody
visibility: public
parameters:
- name: expectedValue
- name: parameterValue
comment: '# * @dataProvider provideBoolArgument'
- name: provideBoolArgument
visibility: public
parameters: []
comment: null
- name: testBoolArgumentInJsonBody
visibility: public
parameters: []
comment: '# * Boolean filtering must be disabled for content types other than form
data.'
- name: __construct
visibility: public
parameters:
- name: price
comment: null
- name: __construct
visibility: public
parameters:
- name: page
comment: null
- name: __construct
visibility: public
parameters:
- name: '#[Assert\NotBlank'
- name: email
- name: password
comment: null
- name: getEmail
visibility: public
parameters: []
comment: null
- name: getPassword
visibility: public
parameters: []
comment: null
- name: __construct
visibility: public
parameters:
- name: value
default: 'null'
comment: null
traits:
- PHPUnit\Framework\TestCase
- Symfony\Component\HttpFoundation\Request
- Symfony\Component\HttpKernel\Attribute\MapQueryString
- Symfony\Component\HttpKernel\Attribute\MapRequestPayload
- Symfony\Component\HttpKernel\Attribute\ValueResolver
- Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestPayloadValueResolver
- Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadata
- Symfony\Component\HttpKernel\Event\ControllerArgumentsEvent
- Symfony\Component\HttpKernel\Exception\HttpException
- Symfony\Component\HttpKernel\Exception\NearMissValueResolverException
- Symfony\Component\HttpKernel\HttpKernelInterface
- Symfony\Component\Serializer\Encoder\JsonEncoder
- Symfony\Component\Serializer\Encoder\XmlEncoder
- Symfony\Component\Serializer\Exception\NotNormalizableValueException
- Symfony\Component\Serializer\Exception\PartialDenormalizationException
- Symfony\Component\Serializer\Normalizer\ArrayDenormalizer
- Symfony\Component\Serializer\Normalizer\DenormalizerInterface
- Symfony\Component\Serializer\Normalizer\ObjectNormalizer
- Symfony\Component\Serializer\Serializer
- Symfony\Component\Serializer\SerializerInterface
- Symfony\Component\Validator\ConstraintViolation
- Symfony\Component\Validator\ConstraintViolationList
- Symfony\Component\Validator\Exception\ValidationFailedException
- Symfony\Component\Validator\Validator\ValidatorInterface
- Symfony\Component\Validator\ValidatorBuilder
interfaces: []