소스 검색

updated tests

Johannes Schmitt 13 년 전
부모
커밋
a1d9fed988
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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');
     }