You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #21518 [Uid] Tweak MockUuidFactory docs (javiereguiluz)
This PR was merged into the 7.4 branch.
Discussion
----------
[Uid] Tweak MockUuidFactory docs
Changes compared to #21422:
* The title of the section was demoted to h3 from h1
* The section title is now more friendly to SEO and AI
* Updated the intro to better explain the problem of testing UUIDs
* Reworded the note contents because we usually put most of the information outside of notes/tips admonitions.
Commits
-------
8f80889 [Uid] Tweak MockUuidFactory docs
@@ -495,15 +495,14 @@ In your tests, you can use ``MockUuidFactory`` to inject predictable UUIDs and v
495
495
}
496
496
}
497
497
498
-
.. warning::
499
-
500
-
``MockUuidFactory`` is intended for use in tests only and should never be used in production.
498
+
In addition to the ``create()`` method, the ``MockUuidFactory`` also works for
499
+
the ``randomBased()``, ``timeBased()``, and ``nameBased()`` methods. You can even
500
+
mix different UUID versions in the same sequence.
501
501
502
502
.. note::
503
503
504
-
- Supports the :method:`Symfony\\Component\\Uid\\Factory\\MockUuidFactory::create`, :method:`Symfony\\Component\\Uid\\Factory\\MockUuidFactory::randomBased`, :method:`Symfony\\Component\\Uid\\Factory\\MockUuidFactory::timeBased`, and :method:`Symfony\\Component\\Uid\\Factory\\MockUuidFactory::nameBased` methods.
505
-
- You can mix different UUID versions in the same sequence.
506
-
- Throws an exception if the sequence is exhausted or the type does not match.
504
+
``MockUuidFactory`` throws an exception if the sequence is exhausted or the
505
+
available UUID types don't match the requested type.
0 commit comments