Skip to content

Commit 7c81a18

Browse files
committed
fix tests
1 parent 3dd7d40 commit 7c81a18

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Tests/View/JsonpHandlerTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ public static function handleDataProvider()
7070
return array(
7171
'jQuery callback syntax' => array(array('callback' => 'jQuery171065827149929257_1343950463342')),
7272
'YUI callback syntax' => array(array('callback' => 'YUI.Env.JSONP._12345')),
73-
'custom callback param' => array(array('custom' => '1234')),
74-
'custom callback filter' => array(array('custom' => '1234.asdas.122'), false),
73+
'jQuery custom syntax' => array(array('custom' => 'jQuery171065827149929257_1343950463342')),
74+
'YUI custom syntax' => array(array('custom' => 'YUI.Env.JSONP._12345')),
7575
);
7676
}
7777

7878
/**
79-
* @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
79+
* @expectedException \Symfony\Component\HttpKernel\Exception\BadRequestHttpException
8080
* @dataProvider getCallbackFailureDataProvider
8181
*/
8282
public function testGetCallbackFailure(Request $request)
@@ -119,8 +119,6 @@ public function getCallbackFailureDataProvider()
119119
return array(
120120
'no callback' => array(new Request()),
121121
'incorrect callback param name' => array(new Request(array('foo' => 'bar'))),
122-
'incorrect callback param value' => array(new Request(array('callback' => 'ding.dong'))),
123-
'incorrect callback param name and value' => array(new Request(array('foo' => 'bar'))),
124122
);
125123
}
126124
}

0 commit comments

Comments
 (0)