Explorar el Código

updated tests

Johannes Schmitt hace 13 años
padre
commit
a1d9fed988
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/Symfony/Tests/Component/HttpFoundation/RequestTest.php

+ 2 - 2
tests/Symfony/Tests/Component/HttpFoundation/RequestTest.php

@@ -486,12 +486,12 @@ class RequestTest extends \PHPUnit_Framework_TestCase
         $this->assertEquals('PURGE', $request->getMethod(), '->getMethod() returns the method from _method if defined and POST');
 
         $request->setMethod('POST');
-        $request->server->set('X-HTTP-METHOD-OVERRIDE', 'delete');
+        $request->headers->set('X-HTTP-METHOD-OVERRIDE', 'delete');
         $this->assertEquals('DELETE', $request->getMethod(), '->getMethod() returns the method from X-HTTP-Method-Override even though _method is set if defined and POST');
 
         $request = new Request();
         $request->setMethod('POST');
-        $request->server->set('X-HTTP-METHOD-OVERRIDE', 'delete');
+        $request->headers->set('X-HTTP-METHOD-OVERRIDE', 'delete');
         $this->assertEquals('DELETE', $request->getMethod(), '->getMethod() returns the method from X-HTTP-Method-Override if defined and POST');
     }