+ add the tests example of bug.
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
/**
|
||||
* 测试setMenu.
|
||||
*/
|
||||
include '../../../test/init.php';
|
||||
include '../model.php';
|
||||
$app->user->account = 'test';
|
||||
$bug = new bugModel();
|
||||
$bug->setMenu(array(1, 2, 3), 1);
|
||||
print_r($lang->bug->menu->product);
|
||||
Reference in New Issue
Block a user