+ [misc] Add unit tests for projectZen::processBuildSearchParams() method
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
sunhao
co-authored by
Claude
parent
3feb006b56
commit
a5364f0670
@@ -31,6 +31,10 @@ $normalProduct = new stdclass();
|
||||
$normalProduct->id = 1;
|
||||
$normalProduct->type = 'normal';
|
||||
|
||||
$branchProduct = new stdclass();
|
||||
$branchProduct->id = 2;
|
||||
$branchProduct->type = 'branch';
|
||||
|
||||
$products = array(1 => 'Product1', 2 => 'Product2');
|
||||
|
||||
r($projectTest->processBuildSearchParamsTest((object)array('id' => 1, 'multiple' => 0, 'hasProduct' => 0, 'model' => 'scrum'), $normalProduct, $products, 'all', 0)) && p('fields:name') && e('Name'); // 步骤1:无产品项目,product字段应该被移除
|
||||
|
||||
Reference in New Issue
Block a user