Skip to content

Commit 9d1eab7

Browse files
committed
[#8013] revert wrong data provider change
1 parent 80e664a commit 9d1eab7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

form/unit_testing.rst

+5-6
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ allows you to return a list of extensions to register::
196196
$this->validator
197197
->method('validate')
198198
->will($this->returnValue(new ConstraintViolationList()));
199-
$this->validator
199+
$this->validator
200200
->method('getMetadataFor')
201201
->will($this->returnValue(new ClassMetadata(Form::class)));
202202

@@ -222,15 +222,14 @@ a good opportunity to use them::
222222

223223
class TestedTypeTest extends TypeTestCase
224224
{
225-
225+
/**
226+
* @dataProvider getValidTestData
227+
*/
226228
public function testForm($data)
227229
{
228230
// ... your test
229231
}
230-
231-
/**
232-
* @dataProvider getValidTestData
233-
*/
232+
234233
public function getValidTestData()
235234
{
236235
return array(

0 commit comments

Comments
 (0)