@@ -43,6 +43,7 @@ class DocumentationActionTest extends TestCase
43
43
public function testDocumentationAction (): void
44
44
{
45
45
$ requestProphecy = $ this ->prophesize (Request::class);
46
+ $ requestProphecy ->getRequestFormat ()->willReturn ('json ' );
46
47
$ attributesProphecy = $ this ->prophesize (ParameterBagInterface::class);
47
48
$ queryProphecy = $ this ->prophesize (ParameterBag::class);
48
49
$ resourceNameCollectionFactoryProphecy = $ this ->prophesize (ResourceNameCollectionFactoryInterface::class);
@@ -63,6 +64,7 @@ public function testDocumentationAction(): void
63
64
public function testLegacyDocumentationAction (): void
64
65
{
65
66
$ requestProphecy = $ this ->prophesize (Request::class);
67
+ $ requestProphecy ->getRequestFormat ()->willReturn ('json ' );
66
68
$ attributesProphecy = $ this ->prophesize (ParameterBagInterface::class);
67
69
$ queryProphecy = $ this ->prophesize (ParameterBag::class);
68
70
$ resourceNameCollectionFactoryProphecy = $ this ->prophesize (ResourceNameCollectionFactoryInterface::class);
@@ -97,6 +99,7 @@ public function testDocumentationActionV2(): void
97
99
{
98
100
$ openApiFactoryProphecy = $ this ->prophesize (OpenApiFactoryInterface::class);
99
101
$ requestProphecy = $ this ->prophesize (Request::class);
102
+ $ requestProphecy ->getRequestFormat ()->willReturn ('json ' );
100
103
$ attributesProphecy = $ this ->prophesize (ParameterBagInterface::class);
101
104
$ queryProphecy = $ this ->prophesize (ParameterBag::class);
102
105
$ resourceNameCollectionFactoryProphecy = $ this ->prophesize (ResourceNameCollectionFactoryInterface::class);
@@ -120,6 +123,7 @@ public function testDocumentationActionV3(): void
120
123
$ openApiFactoryProphecy = $ this ->prophesize (OpenApiFactoryInterface::class);
121
124
$ openApiFactoryProphecy ->__invoke (Argument::any ())->shouldBeCalled ()->willReturn ($ openApi );
122
125
$ requestProphecy = $ this ->prophesize (Request::class);
126
+ $ requestProphecy ->getRequestFormat ()->willReturn ('json ' );
123
127
$ attributesProphecy = $ this ->prophesize (ParameterBagInterface::class);
124
128
$ queryProphecy = $ this ->prophesize (ParameterBag::class);
125
129
$ resourceNameCollectionFactoryProphecy = $ this ->prophesize (ResourceNameCollectionFactoryInterface::class);
0 commit comments