File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed
tests/Fixtures/TestBundle/Controller/Issue6355 Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 55
55
[
56
56
"sentence-case",
57
57
"start-case",
58
- "pascal-case",
59
- "upper-case"
58
+ "pascal-case"
60
59
]
61
60
],
62
61
"subject-empty": [
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ legacy:
203
203
- 'Behat\MinkExtension\Context\MinkContext'
204
204
- 'behatch:context:rest'
205
205
filters:
206
- tags: '~@postgres&&~@mongodb&&~@elasticsearch&&~@link_security'
206
+ tags: '~@postgres&&~@mongodb&&~@elasticsearch&&~@link_security&&~@use_listener '
207
207
extensions:
208
208
'FriendsOfBehat\SymfonyExtension':
209
209
bootstrap: 'tests/Fixtures/app/bootstrap.php'
Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ Feature: Sending PATCH requets
81
81
}
82
82
"""
83
83
84
+ @use_listener
85
+ @controller
86
+ # Previously to 3.3 it was not possible to disable a read, this test is ignored on the
87
+ # legacy test suite (EVENT_LISTENERS_BACKWARD_COMPATIBILITY_LAYER=1)
84
88
Scenario : Patch a non-readable resource
85
89
When I add "Content-Type" header equal to "application/merge-patch+json"
86
90
And I send a "PATCH" request to "/order_products/1/count" with body:
@@ -89,5 +93,7 @@ Feature: Sending PATCH requets
89
93
"id": 1,
90
94
"count": 10
91
95
}
96
+
92
97
"""
93
- Then print last JSON response
98
+ Then the response status code should be 200
99
+ And the JSON node "id" should contain "1"
Original file line number Diff line number Diff line change 14
14
namespace ApiPlatform \Tests \Fixtures \TestBundle \Controller \Issue6355 ;
15
15
16
16
use ApiPlatform \Tests \Fixtures \TestBundle \ApiResource \Issue6355 \OrderDto ;
17
- use ApiPlatform \Tests \Fixtures \TestBundle \ApiResource \Issue6355 \OrderProductCount ;
18
17
use Symfony \Bundle \FrameworkBundle \Controller \AbstractController ;
19
- use Symfony \Component \HttpFoundation \Request ;
20
18
use Symfony \Component \HttpKernel \Attribute \AsController ;
21
19
22
20
#[AsController]
23
21
class UpdateOrderProductCountController extends AbstractController
24
22
{
25
- public function __invoke (OrderProductCount $ data , Request $ request ): OrderDto
23
+ public function __invoke (): OrderDto
26
24
{
27
25
$ dto = new OrderDto ();
28
26
$ dto ->id = 1 ;
You can’t perform that action at this time.
0 commit comments