* remove the chdir logic.

* init $app->user.
This commit is contained in:
wangchunsheng
2013-02-18 03:05:21 +00:00
parent 59356e22df
commit a3b4584623
+1 -1
View File
@@ -4,8 +4,8 @@
* 测试setMenu.
*/
include '../../../test/init.php';
chdir(dirname(__FILE__));
include '../model.php';
$app->user = new stdclass();
$app->user->account = 'test';
$bug = new bugModel();
$bug->setMenu(array(1, 2, 3), 1);