File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -535,6 +535,14 @@ This allows you to create all types of requests you can think of:
535
535
:ref: `framework.test <reference-framework-test >` option is enabled).
536
536
This means you can override the service entirely if you need to.
537
537
538
+ .. caution ::
539
+
540
+ Before each request with the client, the client "resets" the container and recreates it from scratch.
541
+ That gives each request an "isolated" environment because each request will create new service objects.
542
+ But for example, when using the entity manager of Doctrine, all entities loaded with it are "lost"
543
+ when a new request is sent (because the entity manager was "reset"). You have to query again entities if you want
544
+ to have entities in "valid state".
545
+
538
546
Browsing the Site
539
547
.................
540
548
@@ -898,16 +906,16 @@ Response Assertions
898
906
Asserts the response format returned by the
899
907
:method: `Symfony\\ Component\\ HttpFoundation\\ Response::getFormat ` method
900
908
is the same as the expected value.
901
- ``assertResponseIsUnprocessable(string $message = '') ``
909
+ ``assertResponseIsUnprocessable(string $message = '') ``
902
910
Asserts the response is unprocessable (HTTP status is 422)
903
911
904
912
.. versionadded :: 5.3
905
913
906
914
The ``assertResponseFormatSame() `` method was introduced in Symfony 5.3.
907
-
915
+
908
916
.. versionadded :: 5.4
909
917
910
- The ``assertResponseIsUnprocessable() `` method was introduced in Symfony 5.4.
918
+ The ``assertResponseIsUnprocessable() `` method was introduced in Symfony 5.4.
911
919
912
920
Request Assertions
913
921
..................
You can’t perform that action at this time.
0 commit comments