Skip to content

Commit a5e2b47

Browse files
committed
minor #7587 Added note about using the Validator TypeTestCase in form unit testing (pierredup, javiereguiluz)
This PR was merged into the 2.7 branch. Discussion ---------- Added note about using the Validator TypeTestCase in form unit testing This update ads the usage of the validator TypeTestCase class to use for testing when validation is required. Commits ------- c495b92 Readded a blank line ff1bd8e Reverted some changes f0887ae Remove section about forms using validation 6fda2df Removed extra class cf0f9e6 Update fomr testing sentence 070b2c0 Renamed TestedTypeTests to TestedTypeTest d17821a Fix heading underlining d4979eb Fix typos 3e6dc19 Add docs about the validator TypeTestCase class
2 parents 8c74863 + c495b92 commit a5e2b47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

form/unit_testing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ To create your form correctly, you need to make the type available to the
125125
form factory in your test. The easiest way is to register it manually
126126
before creating the parent form using the ``PreloadedExtension`` class::
127127

128-
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
128+
// src/AppBundle/Tests/Form/Type/TestedTypeTest.php
129129
namespace AppBundle\Tests\Form\Type;
130130

131131
use AppBundle\Form\Type\TestedType;
@@ -170,7 +170,7 @@ will be raised if you try to test a class that depends on other extensions.
170170
The :method:`Symfony\\Component\\Form\\Test\\TypeTestCase::getExtensions` method
171171
allows you to return a list of extensions to register::
172172

173-
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
173+
// src/AppBundle/Tests/Form/Type/TestedTypeTest.php
174174
namespace AppBundle\Tests\Form\Type;
175175

176176
use AppBundle\Form\Type\TestedType;
@@ -211,7 +211,7 @@ Testing against Different Sets of Data
211211
If you are not familiar yet with PHPUnit's `data providers`_, this might be
212212
a good opportunity to use them::
213213

214-
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
214+
// src/AppBundle/Tests/Form/Type/TestedTypeTest.php
215215
namespace AppBundle\Tests\Form\Type;
216216

217217
use AppBundle\Form\Type\TestedType;

0 commit comments

Comments
 (0)