Skip to content

Commit ad71eae

Browse files
committed
minor #12224 [Messenger] Adds a note InMemoryTransports will be reset in tests (smoench)
This PR was merged into the 4.3 branch. Discussion ---------- [Messenger] Adds a note InMemoryTransports will be reset in tests The `InMemoryTransport` implements the `Symfony\Contracts\Service\ResetInterface`. Commits ------- 4c14325 [Messenger] Adds a note InMemoryTransports will be reset in tests
2 parents b261982 + 4c14325 commit ad71eae

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

messenger.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,13 @@ during a request::
960960
}
961961
}
962962

963+
.. note::
964+
965+
All ``in-memory`` transports will be reset automatically after each test **in**
966+
test classes extending
967+
:class:`Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase`
968+
or :class:`Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase`.
969+
963970
Serializing Messages
964971
~~~~~~~~~~~~~~~~~~~~
965972

0 commit comments

Comments
 (0)