Skip to content

Commit 32c88b8

Browse files
committed
Renamed TestedTypeTests to TestedTypeTest
1 parent ca304f7 commit 32c88b8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

form/unit_testing.rst

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

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

130130
use AppBundle\Form\Type\TestedType;
@@ -167,7 +167,7 @@ In order to have these options registered, your test needs to extend the
167167
:class:`Symfony\\Component\\Form\\Tests\\Extension\\Validator\\Type\\TypeTestCase`
168168
class::
169169

170-
// tests/AppBundle/Form/Type/TestedTypeTests.php
170+
// tests/AppBundle/Form/Type/TestedTypeTest.php
171171
namespace Tests\AppBundle\Form\Type;
172172

173173
use Symfony\Component\Form\Tests\Extension\Validator\Type\TypeTestCase;
@@ -188,7 +188,7 @@ will be raised if you try to test a class that depends on other extensions.
188188
The :method:`Symfony\\Component\\Form\\Test\\TypeTestCase::getExtensions` method
189189
allows you to return a list of extensions to register::
190190

191-
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
191+
// src/AppBundle/Tests/Form/Type/TestedTypeTest.php
192192
namespace AppBundle\Tests\Form\Type;
193193

194194
use AppBundle\Form\Type\TestedType;
@@ -208,16 +208,13 @@ allows you to return a list of extensions to register::
208208
// ... your tests
209209
}
210210

211-
It is also possible to load custom form types, form type extensions or type guessers using the
212-
``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` methods.
213-
214211
Testing against Different Sets of Data
215212
--------------------------------------
216213

217214
If you are not familiar yet with PHPUnit's `data providers`_, this might be
218215
a good opportunity to use them::
219216

220-
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
217+
// src/AppBundle/Tests/Form/Type/TestedTypeTest.php
221218
namespace AppBundle\Tests\Form\Type;
222219

223220
use AppBundle\Form\Type\TestedType;

0 commit comments

Comments
 (0)