ApiPlatform\Core\Tests\Bridge\Symfony\Action\SwaggerUiActionTest::getInvokeParameters PHP Method

getInvokeParameters() public method

public getInvokeParameters ( )
    public function getInvokeParameters()
    {
        $postRequest = new Request([], [], ['_api_resource_class' => 'Foo', '_api_item_operation_name' => 'post']);
        $postRequest->setMethod('POST');
        $twigCollectionProphecy = $this->prophesize(\Twig_Environment::class);
        $twigCollectionProphecy->render('ApiPlatformBundle:SwaggerUi:index.html.twig', ['spec' => 'hello', 'shortName' => 'F', 'operationId' => 'getFCollection', 'title' => '', 'description' => '', 'formats' => []])->shouldBeCalled();
        $twigItemProphecy = $this->prophesize(\Twig_Environment::class);
        $twigItemProphecy->render('ApiPlatformBundle:SwaggerUi:index.html.twig', ['spec' => 'hello', 'shortName' => 'F', 'operationId' => 'getFItem', 'title' => '', 'description' => '', 'formats' => []])->shouldBeCalled();
        return [[new Request([], [], ['_api_resource_class' => 'Foo', '_api_collection_operation_name' => 'get']), $twigCollectionProphecy], [new Request([], [], ['_api_resource_class' => 'Foo', '_api_item_operation_name' => 'get']), $twigItemProphecy]];
    }