From dfbf11a389b8a7bd5fbde0d2edc4306c8a2f789d Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Mon, 21 Nov 2022 08:58:58 +0100 Subject: [PATCH] Emphasise where a method is returning a value. --- testing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing.rst b/testing.rst index 778c2cb0dd0..a092a7b5bfa 100644 --- a/testing.rst +++ b/testing.rst @@ -247,7 +247,7 @@ Retrieving Services in the Test In your integration tests, you often need to fetch the service from the service container to call a specific method. After booting the kernel, -the container is stored in ``static::getContainer()``:: +the container is returned by ``static::getContainer()``:: // tests/Service/NewsletterGeneratorTest.php namespace App\Tests\Service; @@ -273,7 +273,7 @@ the container is stored in ``static::getContainer()``:: } } -The container in ``static::getContainer()`` is actually a special test container. +The container from ``static::getContainer()`` is actually a special test container. It gives you access to both the public services and the non-removed :ref:`private services `.