@@ -124,7 +124,7 @@ To create your form correctly, you need to make the type available to the
124
124
form factory in your test. The easiest way is to register it manually
125
125
before creating the parent form using the ``PreloadedExtension `` class::
126
126
127
- // src/AppBundle/Tests/Form/Type/TestedTypeTests .php
127
+ // src/AppBundle/Tests/Form/Type/TestedTypeTest .php
128
128
namespace AppBundle\Tests\Form\Type;
129
129
130
130
use AppBundle\Form\Type\TestedType;
@@ -167,7 +167,7 @@ In order to have these options registered, your test needs to extend the
167
167
:class: `Symfony\\ Component\\ Form\\ Tests\\ Extension\\ Validator\\ Type\\ TypeTestCase `
168
168
class::
169
169
170
- // tests/AppBundle/Form/Type/TestedTypeTests .php
170
+ // tests/AppBundle/Form/Type/TestedTypeTest .php
171
171
namespace Tests\AppBundle\Form\Type;
172
172
173
173
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.
188
188
The :method: `Symfony\\ Component\\ Form\\ Test\\ TypeTestCase::getExtensions ` method
189
189
allows you to return a list of extensions to register::
190
190
191
- // src/AppBundle/Tests/Form/Type/TestedTypeTests .php
191
+ // src/AppBundle/Tests/Form/Type/TestedTypeTest .php
192
192
namespace AppBundle\Tests\Form\Type;
193
193
194
194
use AppBundle\Form\Type\TestedType;
@@ -215,16 +215,13 @@ allows you to return a list of extensions to register::
215
215
// ... your tests
216
216
}
217
217
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
-
221
218
Testing against Different Sets of Data
222
219
--------------------------------------
223
220
224
221
If you are not familiar yet with PHPUnit's `data providers `_, this might be
225
222
a good opportunity to use them::
226
223
227
- // src/AppBundle/Tests/Form/Type/TestedTypeTests .php
224
+ // src/AppBundle/Tests/Form/Type/TestedTypeTest .php
228
225
namespace AppBundle\Tests\Form\Type;
229
226
230
227
use AppBundle\Form\Type\TestedType;
0 commit comments