浏览代码

stick to previous check

Mark Scherer 11 年之前
父节点
当前提交
68a5ca8458
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      TestSuite/IntegrationTestCase.php

+ 1 - 1
TestSuite/IntegrationTestCase.php

@@ -187,7 +187,7 @@ abstract class IntegrationTestCase extends MyControllerTestCase {
 		$this->_requestSession = $this->controller->Session;
 
 		// Shim result of https://github.com/cakephp/cakephp/pull/5744 for earlier versions
-		if ((float)Configure::version() < 2.6) {
+		if ((float)Configure::version() <= 2.6) {
 			$header = $this->_response->header();
 			if (isset($header['Location']) && $this->_response->statusCode() === 200) {
 				$this->_response->statusCode(302);