+ add the tests example of bug.
This commit is contained in:
@@ -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>
|
||||
»
|
||||
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