Skip to content

Commit b335b32

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: [Form] Remove a redundant test. use value of DIRECTORY_SEPARATOR to detect Windows Conflicts: src/Symfony/Component/Console/Application.php src/Symfony/Component/Filesystem/Tests/FilesystemTest.php src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php src/Symfony/Component/Process/Process.php
2 parents e39ff6b + ce28608 commit b335b32

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -279,37 +279,6 @@ public function testValidateTokenOnSubmitIfRootAndCompoundUsesTypeClassAsIntenti
279279
$this->assertSame($valid, $form->isValid());
280280
}
281281

282-
/**
283-
* @dataProvider provideBoolean
284-
*/
285-
public function testValidateTokenOnBindIfRootAndCompoundUsesTypeClassAsIntentionIfEmptyFormName($valid)
286-
{
287-
$this->tokenManager->expects($this->once())
288-
->method('isTokenValid')
289-
->with(new CsrfToken('Symfony\Component\Form\Extension\Core\Type\FormType', 'token'))
290-
->will($this->returnValue($valid));
291-
292-
$form = $this->factory
293-
->createNamedBuilder('', 'form', null, array(
294-
'csrf_field_name' => 'csrf',
295-
'csrf_token_manager' => $this->tokenManager,
296-
'compound' => true,
297-
))
298-
->add('child', 'text')
299-
->getForm();
300-
301-
$form->submit(array(
302-
'child' => 'foobar',
303-
'csrf' => 'token',
304-
));
305-
306-
// Remove token from data
307-
$this->assertSame(array('child' => 'foobar'), $form->getData());
308-
309-
// Validate accordingly
310-
$this->assertSame($valid, $form->isValid());
311-
}
312-
313282
public function testFailIfRootAndCompoundAndTokenMissing()
314283
{
315284
$this->tokenManager->expects($this->never())

0 commit comments

Comments
 (0)