浏览代码

Fix tests/bootstrap

Mark Scherer 11 年之前
父节点
当前提交
88aa6f1de1
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      src/Controller/Component/FlashComponent.php
  2. 2 1
      tests/bootstrap.php

+ 1 - 0
src/Controller/Component/FlashComponent.php

@@ -45,6 +45,7 @@ class FlashComponent extends Component {
 			(array)$this->Controller->request->session()->consume('FlashMessage'),
 			(array)$this->Controller->request->session()->consume('FlashMessage'),
 			(array)Configure::consume('FlashMessage')
 			(array)Configure::consume('FlashMessage')
 		);
 		);
+
 		// The header can be read with JavaScript and a custom Message can be displayed
 		// The header can be read with JavaScript and a custom Message can be displayed
 		$this->Controller->response->header($headerKey, json_encode($ajaxMessages));
 		$this->Controller->response->header($headerKey, json_encode($ajaxMessages));
 	}
 	}

+ 2 - 1
tests/bootstrap.php

@@ -55,7 +55,8 @@ $Tmp->create(TMP . 'cache/views', 0770);
 
 
 $cache = [
 $cache = [
 	'default' => [
 	'default' => [
-		'engine' => 'File'
+		'engine' => 'File',
+		'path' => CACHE
 	],
 	],
 	'_cake_core_' => [
 	'_cake_core_' => [
 		'className' => 'File',
 		'className' => 'File',