* remove the chdir logic.
* init $app->user.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user