Skip to content

Commit a5a7562

Browse files
committed
minor #17451 [Testing] Emphasise where a method is returning a value. (ChrisTaylorDeveloper)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Testing] Emphasise where a method is returning a value. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- dfbf11a Emphasise where a method is returning a value.
2 parents 155bbf4 + dfbf11a commit a5a7562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Retrieving Services in the Test
247247

248248
In your integration tests, you often need to fetch the service from the
249249
service container to call a specific method. After booting the kernel,
250-
the container is stored in ``static::getContainer()``::
250+
the container is returned by ``static::getContainer()``::
251251

252252
// tests/Service/NewsletterGeneratorTest.php
253253
namespace App\Tests\Service;
@@ -273,7 +273,7 @@ the container is stored in ``static::getContainer()``::
273273
}
274274
}
275275

276-
The container in ``static::getContainer()`` is actually a special test container.
276+
The container from ``static::getContainer()`` is actually a special test container.
277277
It gives you access to both the public services and the non-removed
278278
:ref:`private services <container-public>`.
279279

0 commit comments

Comments
 (0)