@@ -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;
@@ -208,16 +208,13 @@ allows you to return a list of extensions to register::
208
208
// ... your tests
209
209
}
210
210
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
-
214
211
Testing against Different Sets of Data
215
212
--------------------------------------
216
213
217
214
If you are not familiar yet with PHPUnit's `data providers `_, this might be
218
215
a good opportunity to use them::
219
216
220
- // src/AppBundle/Tests/Form/Type/TestedTypeTests .php
217
+ // src/AppBundle/Tests/Form/Type/TestedTypeTest .php
221
218
namespace AppBundle\Tests\Form\Type;
222
219
223
220
use AppBundle\Form\Type\TestedType;
0 commit comments