ApiPlatform\Core\Tests\Hydra\Serializer\PartialCollectionViewNormalizerTest::testNormalizeDoesNotChangeSubLevel PHP Method

testNormalizeDoesNotChangeSubLevel() public method

    public function testNormalizeDoesNotChangeSubLevel()
    {
        $decoratedNormalizerProphecy = $this->prophesize(NormalizerInterface::class);
        $decoratedNormalizerProphecy->normalize(Argument::any(), null, ['jsonld_sub_level' => true])->willReturn(['foo' => 'bar'])->shouldBeCalled();
        $normalizer = new PartialCollectionViewNormalizer($decoratedNormalizerProphecy->reveal());
        $this->assertEquals(['foo' => 'bar'], $normalizer->normalize(new \stdClass(), null, ['jsonld_sub_level' => true]));
    }