Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f4b498c

Browse filesBrowse files
committed
Merge branch '2.7'
* 2.7: fixed unit tests
2 parents 86354c7 + 08a7ba9 commit f4b498c
Copy full SHA for f4b498c

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php‎

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,15 +284,15 @@ public function testValidateTokenOnSubmitIfRootAndCompoundUsesTypeClassAsIntenti
284284
*/
285285
public function testValidateTokenOnBindIfRootAndCompoundUsesTypeClassAsIntentionIfEmptyFormName($valid)
286286
{
287-
$this->csrfProvider->expects($this->once())
288-
->method('isCsrfTokenValid')
289-
->with('Symfony\Component\Form\Extension\Core\Type\FormType', 'token')
287+
$this->tokenManager->expects($this->once())
288+
->method('isTokenValid')
289+
->with(new CsrfToken('Symfony\Component\Form\Extension\Core\Type\FormType', 'token'))
290290
->will($this->returnValue($valid));
291291

292292
$form = $this->factory
293293
->createNamedBuilder('', 'form', null, array(
294294
'csrf_field_name' => 'csrf',
295-
'csrf_provider' => $this->csrfProvider,
295+
'csrf_token_manager' => $this->tokenManager,
296296
'compound' => true,
297297
))
298298
->add('child', 'text')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.