+ [misc] Add unit tests for mrZen::buildLinkTaskSearchForm() method
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -110,4 +110,29 @@ class mrZenTest extends baseTest
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test buildLinkTaskSearchForm method.
|
||||
*
|
||||
* @param int $MRID
|
||||
* @param int $repoID
|
||||
* @param string $orderBy
|
||||
* @param int $queryID
|
||||
* @param array $productExecutions
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function buildLinkTaskSearchFormTest(int $MRID, int $repoID, string $orderBy, int $queryID, array $productExecutions): array
|
||||
{
|
||||
$this->invokeArgs('buildLinkTaskSearchForm', [$MRID, $repoID, $orderBy, $queryID, $productExecutions]);
|
||||
|
||||
global $config;
|
||||
$result = array();
|
||||
$result['actionURL'] = $config->execution->search['actionURL'] ?? '';
|
||||
$result['queryID'] = $config->execution->search['queryID'] ?? 0;
|
||||
$result['hasModule'] = isset($config->execution->search['fields']['module']) ? 1 : 0;
|
||||
$result['executionValues'] = $config->execution->search['params']['execution']['values'] ?? array();
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user