+ add the tests example of bug.

This commit is contained in:
wangchunsheng
2011-06-21 06:27:31 +00:00
parent 000986c1de
commit e8e725ef98
2 changed files with 17 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
<select name='productID' id='productID' onchange="switchProduct(this.value, 'bug', 'browse');">
<option value='0'>1</option>
<option value='1' selected='selected'>2</option>
<option value='2'>3</option>
</select>
»
+11
View File
@@ -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);