summaryrefslogtreecommitdiffstats
path: root/tests/Bootstrap.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-05-15 16:52:53 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-05-15 16:52:53 +0200
commit8af88f3f729b7bcfd2a106f858b5445deafe5ed0 (patch)
treef2b8489a4720d15d8a02fc19d95993e1d7c1b54e /tests/Bootstrap.php
parent12f4c9b25ff366db05ebc4fa13b8f7ab0b1e3dae (diff)
Security Code coverage
Diffstat (limited to 'tests/Bootstrap.php')
-rw-r--r--tests/Bootstrap.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Bootstrap.php b/tests/Bootstrap.php
index 9f89d1be8..2bec364ef 100644
--- a/tests/Bootstrap.php
+++ b/tests/Bootstrap.php
@@ -12,6 +12,9 @@ define('BASEPATH', PROJECT_BASE.'system/');
define('APPPATH', PROJECT_BASE.'application/');
define('VIEWPATH', PROJECT_BASE.'');
+// Set cookie for security test
+$_COOKIE['ci_csrf_cookie'] = md5(uniqid(rand(), TRUE));
+
// Prep our test environment
require_once 'vfsStream/vfsStream.php';
include_once $dir.'/mocks/core/common.php';