Permalink
Browse files

fix tests

  • Loading branch information...
1 parent 39e7122 commit f71c1f4d05d4bc851bd73e5201a596ce997571af @lsmith77 lsmith77 committed Sep 30, 2011
Showing with 8 additions and 8 deletions.
  1. +8 −8 Tests/EventListener/BodyListenerTest.php
@@ -69,14 +69,14 @@ public function testOnKernelRequest($decode, $request, $method, $contentType, $e
public static function testOnKernelRequestDataProvider()
{
return array(
- 'Empty POST request' => array(true, new Request(array(), array(), array(), array(), array(), array(), 'foo'), 'POST', 'application/json', array('foo')),
- 'Empty PUT request' => array(true, new Request(array(), array(), array(), array(), array(), array(), 'foo'), 'PUT', 'application/json', array('foo')),
- 'Empty PATCH request' => array(true, new Request(array(), array(), array(), array(), array(), array(), 'foo'), 'PATCH', 'application/json', array('foo')),
- 'Empty DELETE request' => array(true, new Request(array(), array(), array(), array(), array(), array(), 'foo'), 'DELETE', 'application/json', array('foo')),
- 'Empty GET request' => array(false, new Request(array(), array(), array(), array(), array(), array(), 'foo'), 'GET', 'application/json', array()),
- 'POST request with parameters' => array(false, new Request(array(), array('bar'), array(), array(), array(), array(), 'foo'), 'POST', 'application/json', array('bar')),
- 'POST request with unallowed format' => array(false, new Request(array(), array(), array(), array(), array(), array(), 'foo'), 'POST', 'application/fooformat', array()),
- 'POST request with no Content-Type' => array(true, new Request(array(), array(), array('_format' => 'json'), array(), array(), array(), 'foo'), 'POST', null, array('foo')),
+ 'Empty POST request' => array(true, new Request(array(), array(), array(), array(), array(), array(), array('foo')), 'POST', 'application/json', array('foo')),
+ 'Empty PUT request' => array(true, new Request(array(), array(), array(), array(), array(), array(), array('foo')), 'PUT', 'application/json', array('foo')),
+ 'Empty PATCH request' => array(true, new Request(array(), array(), array(), array(), array(), array(), array('foo')), 'PATCH', 'application/json', array('foo')),
+ 'Empty DELETE request' => array(true, new Request(array(), array(), array(), array(), array(), array(), array('foo')), 'DELETE', 'application/json', array('foo')),
+ 'Empty GET request' => array(false, new Request(array(), array(), array(), array(), array(), array(), array('foo')), 'GET', 'application/json', array()),
+ 'POST request with parameters' => array(false, new Request(array(), array('bar'), array(), array(), array(), array(), array('foo')), 'POST', 'application/json', array('bar')),
+ 'POST request with unallowed format' => array(false, new Request(array(), array(), array(), array(), array(), array(), array('foo')), 'POST', 'application/fooformat', array()),
+ 'POST request with no Content-Type' => array(true, new Request(array(), array(), array('_format' => 'json'), array(), array(), array(), array('foo')), 'POST', null, array('foo')),
);
}

0 comments on commit f71c1f4

Please sign in to comment.