Skip to content

Commit 070b2c0

Browse files
committed
Renamed TestedTypeTests to TestedTypeTest
1 parent d17821a commit 070b2c0

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;
@@ -215,16 +215,13 @@ allows you to return a list of extensions to register::
215215
// ... your tests
216216
}
217217

218-
It is also possible to load custom form types, form type extensions or type guessers using the
219-
``getTypedExtensions``, ``getTypes`` and ``getTypeGuessers`` methods.
220-
221218
Testing against Different Sets of Data
222219
--------------------------------------
223220

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

227-
// src/AppBundle/Tests/Form/Type/TestedTypeTests.php
224+
// src/AppBundle/Tests/Form/Type/TestedTypeTest.php
228225
namespace AppBundle\Tests\Form\Type;
229226

230227
use AppBundle\Form\Type\TestedType;

0 commit comments

Comments
 (0)