From 45cc1cf2ebbd31b781fbd25f41873377f1b6464b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 22 Dec 2021 09:56:40 +0100 Subject: [PATCH] [Testing] Minor tweaks in the main testing article --- testing.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing.rst b/testing.rst index 4147ab361a0..884e0943b8c 100644 --- a/testing.rst +++ b/testing.rst @@ -222,7 +222,7 @@ If you need to customize some environment variables for your tests (e.g. the ``DATABASE_URL`` used by Doctrine), you can do that by overriding anything you need in your ``.env.test`` file: -.. code-block:: text +.. code-block:: env # .env.test @@ -268,7 +268,7 @@ the container is stored in ``static::getContainer()``:: $newsletterGenerator = $container->get(NewsletterGenerator::class); $newsletter = $newsletterGenerator->generateMonthlyNews(...); - $this->assertEquals(..., $newsletter->getContent()); + $this->assertEquals('...', $newsletter->getContent()); } }