Skip to content

Commit

Permalink
docs: fix Title level inconsistent
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 30, 2022
1 parent 05c5262 commit febfc9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/testing/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ true when testing controllers and other integration testing. The **Services** cl
to simplify this.

injectMock()
^^^^^^^^^^^^
------------

This method allows you to define the exact instance that will be returned by the Services class. You can use this to
set properties of a service so that it behaves in a certain way, or replace a service with a mocked class.
Expand All @@ -227,12 +227,12 @@ The first parameter is the service that you are replacing. The name must match t
class exactly. The second parameter is the instance to replace it with.

reset()
^^^^^^^
-------

Removes all mocked classes from the Services class, bringing it back to its original state.

resetSingle(string $name)
^^^^^^^^^^^^^^^^^^^^^^^^^
-------------------------

Removes any mock and shared instances for a single service, by its name.

Expand Down

0 comments on commit febfc9c

Please sign in to comment.