From 7c81a1879c5d8a3727932674509e96b2bb7a796e Mon Sep 17 00:00:00 2001 From: Lukas Kahwe Smith Date: Thu, 16 Jan 2014 13:08:55 +0100 Subject: [PATCH] fix tests --- Tests/View/JsonpHandlerTest.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Tests/View/JsonpHandlerTest.php b/Tests/View/JsonpHandlerTest.php index bd99923d2..45a5aac3e 100644 --- a/Tests/View/JsonpHandlerTest.php +++ b/Tests/View/JsonpHandlerTest.php @@ -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) @@ -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'))), ); } }