Skip to content

Commit

Permalink
Remove data variable
Browse files Browse the repository at this point in the history
  • Loading branch information
umpirsky committed Jan 15, 2019
1 parent 4986c26 commit ad6f0dc
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -79,8 +79,7 @@ public function testStringFormData()
*/
public function testArrayCsrfToken()
{
$data = ['csrf' => []];
$event = new FormEvent($this->form, $data);
$event = new FormEvent($this->form, ['csrf' => []]);

$validation = new CsrfValidationListener('csrf', $this->tokenManager, 'unknown', 'Invalid.');
$validation->preSubmit($event);
Expand Down

0 comments on commit ad6f0dc

Please sign in to comment.