Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith77 committed Jan 16, 2014
1 parent 3dd7d40 commit 7c81a18
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Tests/View/JsonpHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ public static function handleDataProvider()
return array(
'jQuery callback syntax' => array(array('callback' => 'jQuery171065827149929257_1343950463342')),
'YUI callback syntax' => array(array('callback' => 'YUI.Env.JSONP._12345')),
'custom callback param' => array(array('custom' => '1234')),
'custom callback filter' => array(array('custom' => '1234.asdas.122'), false),
'jQuery custom syntax' => array(array('custom' => 'jQuery171065827149929257_1343950463342')),
'YUI custom syntax' => array(array('custom' => 'YUI.Env.JSONP._12345')),
);
}

/**
* @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
* @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
* @dataProvider getCallbackFailureDataProvider
*/
public function testGetCallbackFailure(Request $request)
Expand Down Expand Up @@ -119,8 +119,6 @@ public function getCallbackFailureDataProvider()
return array(
'no callback' => array(new Request()),
'incorrect callback param name' => array(new Request(array('foo' => 'bar'))),
'incorrect callback param value' => array(new Request(array('callback' => 'ding.dong'))),
'incorrect callback param name and value' => array(new Request(array('foo' => 'bar'))),
);
}
}

0 comments on commit 7c81a18

Please sign in to comment.