Merge branch 'sgm_storytest' into 'master'
* Add story auto test. See merge request easycorp/zentaopms!2378
This commit is contained in:
978
test/class/story.class.php
Normal file
978
test/class/story.class.php
Normal file
@@ -0,0 +1,978 @@
|
||||
<?php
|
||||
class storyTest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
global $tester;
|
||||
$this->objectModel = $tester->loadModel('story');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test get by id.
|
||||
*
|
||||
* @param int $storyID
|
||||
* @param int $version
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getByIdTest($storyID, $version = 0)
|
||||
{
|
||||
$story = $this->objectModel->getById($storyID, $version);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $story;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test get by list.
|
||||
*
|
||||
* @param int $storyIdList
|
||||
* @param string $type
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getByListTest($storyIdList = 0, $type = 'story')
|
||||
{
|
||||
$stories = $this->objectModel->getByList($storyIdList, $type);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $stories;
|
||||
}
|
||||
|
||||
/**
|
||||
* Test get test stories.
|
||||
*
|
||||
* @param array $storyIdList
|
||||
* @param int $executionID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getTestStoriesTest($storyIdList, $executionID)
|
||||
{
|
||||
$objects = $this->objectModel->getTestStories($storyIdList, $executionID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getStorySpecsTest($storyIdList)
|
||||
{
|
||||
$objects = $this->objectModel->getStorySpecs($storyIdList);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getAffectedScopeTest($story)
|
||||
{
|
||||
$objects = $this->objectModel->getAffectedScope($story);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getRequierementsTest($productID)
|
||||
{
|
||||
$objects = $this->objectModel->getRequierements($productID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function createTest($executionID = 0, $bugID = 0, $from = '', $extra = '')
|
||||
{
|
||||
$objects = $this->objectModel->create($executionID = 0, $bugID = 0, $from = '', $extra = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function createStoryFromGitlabIssueTest($story, $executionID)
|
||||
{
|
||||
$objects = $this->objectModel->createStoryFromGitlabIssue($story, $executionID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchCreateTest($productID = 0, $branch = 0, $type = 'story')
|
||||
{
|
||||
$objects = $this->objectModel->batchCreate($productID = 0, $branch = 0, $type = 'story');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function changeTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->change($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function updateTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->update($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function updateStoryProductTest($storyID, $productID)
|
||||
{
|
||||
$objects = $this->objectModel->updateStoryProduct($storyID, $productID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function updateParentStatusTest($storyID, $parentID = 0, $createAction = true)
|
||||
{
|
||||
$objects = $this->objectModel->updateParentStatus($storyID, $parentID = 0, $createAction = true);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function updateStoryVersionTest($story)
|
||||
{
|
||||
$objects = $this->objectModel->updateStoryVersion($story);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function updateStoryOrderOfPlanTest($storyID, $planIDList = '', $oldPlanIDList = '')
|
||||
{
|
||||
$objects = $this->objectModel->updateStoryOrderOfPlan($storyID, $planIDList = '', $oldPlanIDList = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function computeEstimateTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->computeEstimate($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchUpdateTest()
|
||||
{
|
||||
$objects = $this->objectModel->batchUpdate();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function reviewTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->review($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchReviewTest($storyIdList, $result, $reason)
|
||||
{
|
||||
$objects = $this->objectModel->batchReview($storyIdList, $result, $reason);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function recallTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->recall($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function subdivideTest($storyID, $stories)
|
||||
{
|
||||
$objects = $this->objectModel->subdivide($storyID, $stories);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function closeTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->close($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchCloseTest()
|
||||
{
|
||||
$objects = $this->objectModel->batchClose();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchChangeModuleTest($storyIdList, $moduleID)
|
||||
{
|
||||
$objects = $this->objectModel->batchChangeModule($storyIdList, $moduleID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchChangePlanTest($storyIdList, $planID, $oldPlanID = 0)
|
||||
{
|
||||
$objects = $this->objectModel->batchChangePlan($storyIdList, $planID, $oldPlanID = 0);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchChangeBranchTest($storyIdList, $branchID, $confirm = '', $plans = array())
|
||||
{
|
||||
$objects = $this->objectModel->batchChangeBranch($storyIdList, $branchID, $confirm = '', $plans = array());
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchChangeStageTest($storyIdList, $stage)
|
||||
{
|
||||
$objects = $this->objectModel->batchChangeStage($storyIdList, $stage);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchToTaskTest($executionID, $projectID = 0)
|
||||
{
|
||||
$objects = $this->objectModel->batchToTask($executionID, $projectID = 0);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function assignTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->assign($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchAssignToTest()
|
||||
{
|
||||
$objects = $this->objectModel->batchAssignTo();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function activateTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->activate($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function setStageTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->setStage($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getStories2LinkTest($storyID, $type = 'linkStories', $browseType = 'bySearch', $queryID = 0, $storyType = 'story')
|
||||
{
|
||||
$objects = $this->objectModel->getStories2Link($storyID, $type = 'linkStories', $browseType = 'bySearch', $queryID = 0, $storyType = 'story');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getProductStoriesTest($productID = 0, $branch = 0, $moduleIdList = 0, $status = 'all', $type = 'story', $orderBy = 'id_desc', $hasParent = true, $excludeStories = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getProductStories($productID = 0, $branch = 0, $moduleIdList = 0, $status = 'all', $type = 'story', $orderBy = 'id_desc', $hasParent = true, $excludeStories = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getProductStoryPairsTest($productID = 0, $branch = 0, $moduleIdList = 0, $status = 'all', $order = 'id_desc', $limit = 0, $type = 'full', $storyType = 'story', $hasParent = true)
|
||||
{
|
||||
$objects = $this->objectModel->getProductStoryPairs($productID = 0, $branch = 0, $moduleIdList = 0, $status = 'all', $order = 'id_desc', $limit = 0, $type = 'full', $storyType = 'story', $hasParent = true);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByAssignedToTest($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByAssignedTo($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByOpenedByTest($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByOpenedBy($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByReviewedByTest($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByReviewedBy($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByReviewByTest($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByReviewBy($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByClosedByTest($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByClosedBy($productID, $branch, $modules, $account, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByStatusTest($productID, $branch, $modules, $status, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByStatus($productID, $branch, $modules, $status, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByPlanTest($productID, $branch, $modules, $plan, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getByPlan($productID, $branch, $modules, $plan, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getByFieldTest($productID, $branch, $modules, $fieldName, $fieldValue, $type = 'story', $orderBy = '', $pager = null, $operator = 'equal')
|
||||
{
|
||||
$objects = $this->objectModel->getByField($productID, $branch, $modules, $fieldName, $fieldValue, $type = 'story', $orderBy = '', $pager = null, $operator = 'equal');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function get2BeClosedTest($productID, $branch, $modules, $type = 'story', $orderBy = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->get2BeClosed($productID, $branch, $modules, $type = 'story', $orderBy = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getBySearchTest($productID, $branch = '', $queryID = 0, $orderBy = '', $executionID = '', $type = 'story', $excludeStories = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getBySearch($productID, $branch = '', $queryID = 0, $orderBy = '', $executionID = '', $type = 'story', $excludeStories = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getBySQLTest($productID, $sql, $orderBy, $pager = null, $type = 'story')
|
||||
{
|
||||
$objects = $this->objectModel->getBySQL($productID, $sql, $orderBy, $pager = null, $type = 'story');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getExecutionStoriesTest($executionID = 0, $productID = 0, $branch = 0, $orderBy = 't1.`order`_desc', $type = 'byModule', $param = 0, $storyType = 'story', $excludeStories = '', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getExecutionStories($executionID = 0, $productID = 0, $branch = 0, $orderBy = 't1.`order`_desc', $type = 'byModule', $param = 0, $storyType = 'story', $excludeStories = '', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getExecutionStoryPairsTest($executionID = 0, $productID = 0, $branch = 'all', $moduleIdList = 0, $type = 'full', $status = 'all')
|
||||
{
|
||||
$objects = $this->objectModel->getExecutionStoryPairs($executionID = 0, $productID = 0, $branch = 'all', $moduleIdList = 0, $type = 'full', $status = 'all');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getPlanStoriesTest($planID, $status = 'all', $orderBy = 'id_desc', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getPlanStories($planID, $status = 'all', $orderBy = 'id_desc', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getPlanStoryPairsTest($planID, $status = 'all', $orderBy = 'id_desc', $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getPlanStoryPairs($planID, $status = 'all', $orderBy = 'id_desc', $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getStoriesByPlanIdListTest($planIdList = '')
|
||||
{
|
||||
$objects = $this->objectModel->getStoriesByPlanIdList($planIdList = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getParentStoryPairsTest($productID, $append = '')
|
||||
{
|
||||
$objects = $this->objectModel->getParentStoryPairs($productID, $append = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getUserStoriesTest($account, $type = 'assignedTo', $orderBy = 'id_desc', $pager = null, $storyType = 'story', $includeLibStories = true)
|
||||
{
|
||||
$objects = $this->objectModel->getUserStories($account, $type = 'assignedTo', $orderBy = 'id_desc', $pager = null, $storyType = 'story', $includeLibStories = true);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getUserStoryPairsTest($account, $limit = 10, $type = 'story', $skipProductIDList = array())
|
||||
{
|
||||
$objects = $this->objectModel->getUserStoryPairs($account, $limit = 10, $type = 'story', $skipProductIDList = array());
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getIdListWithTaskTest($executionID)
|
||||
{
|
||||
$objects = $this->objectModel->getIdListWithTask($executionID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getTeamMembersTest($storyID, $actionType)
|
||||
{
|
||||
$objects = $this->objectModel->getTeamMembers($storyID, $actionType);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getVersionTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->getVersion($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getVersionsTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->getVersions($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getZeroCaseTest($productID, $branchID = 0, $orderBy = 'id_desc')
|
||||
{
|
||||
$objects = $this->objectModel->getZeroCase($productID, $branchID = 0, $orderBy = 'id_desc');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getChangedStoriesTest($story)
|
||||
{
|
||||
$objects = $this->objectModel->getChangedStories($story);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getAllStorySortTest($planID, $planOrder)
|
||||
{
|
||||
$objects = $this->objectModel->getAllStorySort($planID, $planOrder);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function batchGetStoryStageTest($stories)
|
||||
{
|
||||
$objects = $this->objectModel->batchGetStoryStage($stories);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function checkNeedConfirmTest($dataList)
|
||||
{
|
||||
$objects = $this->objectModel->checkNeedConfirm($dataList);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function formatStoriesTest($stories, $type = 'full', $limit = 0)
|
||||
{
|
||||
$objects = $this->objectModel->formatStories($stories, $type = 'full', $limit = 0);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function extractAccountsFromListTest($stories)
|
||||
{
|
||||
$objects = $this->objectModel->extractAccountsFromList($stories);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function extractAccountsFromSingleTest($story)
|
||||
{
|
||||
$objects = $this->objectModel->extractAccountsFromSingle($story);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function mergeChartOptionTest($chartType)
|
||||
{
|
||||
$objects = $this->objectModel->mergeChartOption($chartType);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerProductTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerProduct();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerModuleTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerModule();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerSourceTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerSource();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerPlanTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerPlan();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerStatusTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerStatus();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerStageTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerStage();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerPriTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerPri();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerEstimateTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerEstimate();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerOpenedByTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerOpenedBy();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerAssignedToTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerAssignedTo();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerClosedReasonTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerClosedReason();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getDataOfStorysPerChangeTest()
|
||||
{
|
||||
$objects = $this->objectModel->getDataOfStorysPerChange();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getKanbanGroupDataTest($stories)
|
||||
{
|
||||
$objects = $this->objectModel->getKanbanGroupData($stories);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getToAndCcListTest($story, $actionType)
|
||||
{
|
||||
$objects = $this->objectModel->getToAndCcList($story, $actionType);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function mergePlanTitleTest($productID, $stories, $branch = 0, $type = 'story')
|
||||
{
|
||||
$objects = $this->objectModel->mergePlanTitle($productID, $stories, $branch = 0, $type = 'story');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function mergeReviewerTest($stories, $isObject = false)
|
||||
{
|
||||
$objects = $this->objectModel->mergeReviewer($stories, $isObject = false);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function printCellTest($col, $story, $users, $branches, $storyStages, $modulePairs = array(), $storyTasks = array(), $storyBugs = array(), $storyCases = array(), $mode = 'datatable', $storyType = 'story')
|
||||
{
|
||||
$objects = $this->objectModel->printCell($col, $story, $users, $branches, $storyStages, $modulePairs = array(), $storyTasks = array(), $storyBugs = array(), $storyCases = array(), $mode = 'datatable', $storyType = 'story');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function printAssignedHtmlTest($story, $users)
|
||||
{
|
||||
$objects = $this->objectModel->printAssignedHtml($story, $users);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function reportConditionTest()
|
||||
{
|
||||
$objects = $this->objectModel->reportCondition();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function checkForceReviewTest()
|
||||
{
|
||||
$objects = $this->objectModel->checkForceReview();
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getTracksTest($productID = 0, $branch = 0, $projectID = 0, $pager = null)
|
||||
{
|
||||
$objects = $this->objectModel->getTracks($productID = 0, $branch = 0, $projectID = 0, $pager = null);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getTrackByIDTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->getTrackByID($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getStoryRelationTest($storyID, $storyType, $fields = array())
|
||||
{
|
||||
$objects = $this->objectModel->getStoryRelation($storyID, $storyType, $fields = array());
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function linkStoryTest($executionID, $productID, $storyID)
|
||||
{
|
||||
$objects = $this->objectModel->linkStory($executionID, $productID, $storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function linkStoriesTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->linkStories($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function unlinkStoryTest($storyID, $linkedStoryID)
|
||||
{
|
||||
$objects = $this->objectModel->unlinkStory($storyID, $linkedStoryID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getRelationTest($storyID, $storyType, $fields = array())
|
||||
{
|
||||
$objects = $this->objectModel->getRelation($storyID, $storyType, $fields = array());
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getStoryRelationCountsTest($storyID, $storyType = '')
|
||||
{
|
||||
$objects = $this->objectModel->getStoryRelationCounts($storyID, $storyType = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getEstimateInfoTest($storyID, $round = 0)
|
||||
{
|
||||
$objects = $this->objectModel->getEstimateInfo($storyID, $round = 0);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getEstimateRoundsTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->getEstimateRounds($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function saveEstimateInfoTest($storyID)
|
||||
{
|
||||
$objects = $this->objectModel->saveEstimateInfo($storyID);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function sortStoriesOfPlanTest($planID, $sortIDList, $orderBy = 'id_desc', $pageID = 1, $recPerPage = 100)
|
||||
{
|
||||
$objects = $this->objectModel->sortStoriesOfPlan($planID, $sortIDList, $orderBy = 'id_desc', $pageID = 1, $recPerPage = 100);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function replaceURLangTest($type)
|
||||
{
|
||||
$objects = $this->objectModel->replaceURLang($type);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function getReviewerPairsTest($storyID, $version)
|
||||
{
|
||||
$objects = $this->objectModel->getReviewerPairs($storyID, $version);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function setStatusByReviewRulesTest($reviewerList)
|
||||
{
|
||||
$objects = $this->objectModel->setStatusByReviewRules($reviewerList);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function recordReviewActionTest($story, $result = '', $reason = '')
|
||||
{
|
||||
$objects = $this->objectModel->recordReviewAction($story, $result = '', $reason = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function updateStoryByReviewTest($storyID, $oldStory, $story)
|
||||
{
|
||||
$objects = $this->objectModel->updateStoryByReview($storyID, $oldStory, $story);
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
|
||||
public function superReviewTest($storyID, $oldStory, $story, $result = '', $reason = '')
|
||||
{
|
||||
$objects = $this->objectModel->superReview($storyID, $oldStory, $story, $result = '', $reason = '');
|
||||
|
||||
if(dao::isError()) return dao::getError();
|
||||
|
||||
return $objects;
|
||||
}
|
||||
}
|
||||
16
test/model/story/activate.php
Normal file
16
test/model/story/activate.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->activate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/assign.php
Normal file
16
test/model/story/assign.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->assign();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchassignto.php
Normal file
16
test/model/story/batchassignto.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchAssignTo();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchchangebranch.php
Normal file
16
test/model/story/batchchangebranch.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchChangeBranch();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchchangemodule.php
Normal file
16
test/model/story/batchchangemodule.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchChangeModule();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchchangeplan.php
Normal file
16
test/model/story/batchchangeplan.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchChangePlan();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchchangestage.php
Normal file
16
test/model/story/batchchangestage.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchChangeStage();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchclose.php
Normal file
16
test/model/story/batchclose.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchClose();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchcreate.php
Normal file
16
test/model/story/batchcreate.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchCreate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchgetstorystage.php
Normal file
16
test/model/story/batchgetstorystage.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchGetStoryStage();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchreview.php
Normal file
16
test/model/story/batchreview.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchReview();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchtotask.php
Normal file
16
test/model/story/batchtotask.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchToTask();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/batchupdate.php
Normal file
16
test/model/story/batchupdate.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->batchUpdate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/change.php
Normal file
16
test/model/story/change.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->change();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/checkforcereview.php
Normal file
16
test/model/story/checkforcereview.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->checkForceReview();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/checkneedconfirm.php
Normal file
16
test/model/story/checkneedconfirm.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->checkNeedConfirm();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/close.php
Normal file
16
test/model/story/close.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->close();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/computeestimate.php
Normal file
16
test/model/story/computeestimate.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->computeEstimate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/create.php
Normal file
16
test/model/story/create.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->create();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/createstoryfromgitlabissue.php
Normal file
16
test/model/story/createstoryfromgitlabissue.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->createStoryFromGitlabIssue();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/extractaccountsfromlist.php
Normal file
16
test/model/story/extractaccountsfromlist.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->extractAccountsFromList();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/extractaccountsfromsingle.php
Normal file
16
test/model/story/extractaccountsfromsingle.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->extractAccountsFromSingle();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/formatstories.php
Normal file
16
test/model/story/formatstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->formatStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/get2beclosed.php
Normal file
16
test/model/story/get2beclosed.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->get2BeClosed();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getaffectedscope.php
Normal file
16
test/model/story/getaffectedscope.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getAffectedScope();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getallstorysort.php
Normal file
16
test/model/story/getallstorysort.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getAllStorySort();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbyassignedto.php
Normal file
16
test/model/story/getbyassignedto.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByAssignedTo();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbyclosedby.php
Normal file
16
test/model/story/getbyclosedby.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByClosedBy();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbyfield.php
Normal file
16
test/model/story/getbyfield.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByField();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
24
test/model/story/getbyid.php
Normal file
24
test/model/story/getbyid.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getById();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
$story1Version1 = $story->getByIdTest(1, 1);
|
||||
$story1Version2 = $story->getByIdTest(1, 2);
|
||||
$story2Version3 = $story->getByIdTest(3, 3);
|
||||
$story20Version2 = $story->getByIdTest(20, 2);
|
||||
|
||||
r(count($story1Version1->tasks)) && p() && e('6');
|
||||
r($story1Version1) && p('title') && e('用户需求版本一1'); //获取ID为1、版本号为1的需求的名称
|
||||
r($story1Version2) && p('title') && e('用户需求版本二21'); //获取ID为1、版本号为2的需求的名称
|
||||
r($story2Version3) && p('title') && e('用户需求版本三43'); //获取ID为2、版本号为3的需求的名称
|
||||
r($story20Version2) && p('spec') && e('这是一个软件需求描述40'); //获取ID为20、版本号为2的需求的名称
|
||||
28
test/model/story/getbylist.php
Normal file
28
test/model/story/getbylist.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByList();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
$storyIdList = array(1, 2, 3, 4, 5);
|
||||
|
||||
$storyInIdList = $story->getByListTest($storyIdList);
|
||||
$stories = $story->getByListTest(0, 'story');
|
||||
$reqiurements = $story->getByListTest(0, 'requirement');
|
||||
$emptyStories = $story->getByListTest(0, '');
|
||||
|
||||
r(count($storyInIdList)) && p() && e('5'); //根据指定的ID列表,获取需求数量
|
||||
r(count($stories)) && p() && e('10'); //获取软件需求数量
|
||||
r(count($reqiurements)) && p() && e('10'); //获取用户需求数量
|
||||
r($storyInIdList) && p('1:title') && e('用户需求1'); //根据指定的ID列表,获取第一个需求的名称
|
||||
r($stories) && p('2:title') && e('软件需求2'); //获取第一个软件需求的名称
|
||||
r($reqiurements) && p('1:title') && e('用户需求1'); //获取第一个用户需求的名称
|
||||
r($emptyStories) && p('') && e('0'); //传入空类型,返回空列表
|
||||
16
test/model/story/getbyopenedby.php
Normal file
16
test/model/story/getbyopenedby.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByOpenedBy();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbyplan.php
Normal file
16
test/model/story/getbyplan.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByPlan();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbyreviewby.php
Normal file
16
test/model/story/getbyreviewby.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByReviewBy();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbyreviewedby.php
Normal file
16
test/model/story/getbyreviewedby.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByReviewedBy();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbysearch.php
Normal file
16
test/model/story/getbysearch.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getBySearch();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbysql.php
Normal file
16
test/model/story/getbysql.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getBySQL();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getbystatus.php
Normal file
16
test/model/story/getbystatus.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getByStatus();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getchangedstories.php
Normal file
16
test/model/story/getchangedstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getChangedStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperassignedto.php
Normal file
16
test/model/story/getdataofstorysperassignedto.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerAssignedTo();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperchange.php
Normal file
16
test/model/story/getdataofstorysperchange.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerChange();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperclosedreason.php
Normal file
16
test/model/story/getdataofstorysperclosedreason.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerClosedReason();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperestimate.php
Normal file
16
test/model/story/getdataofstorysperestimate.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerEstimate();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstoryspermodule.php
Normal file
16
test/model/story/getdataofstoryspermodule.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerModule();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperopenedby.php
Normal file
16
test/model/story/getdataofstorysperopenedby.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerOpenedBy();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperplan.php
Normal file
16
test/model/story/getdataofstorysperplan.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerPlan();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperpri.php
Normal file
16
test/model/story/getdataofstorysperpri.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerPri();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperproduct.php
Normal file
16
test/model/story/getdataofstorysperproduct.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerProduct();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstoryspersource.php
Normal file
16
test/model/story/getdataofstoryspersource.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerSource();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperstage.php
Normal file
16
test/model/story/getdataofstorysperstage.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerStage();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getdataofstorysperstatus.php
Normal file
16
test/model/story/getdataofstorysperstatus.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getDataOfStorysPerStatus();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getestimateinfo.php
Normal file
16
test/model/story/getestimateinfo.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getEstimateInfo();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getestimaterounds.php
Normal file
16
test/model/story/getestimaterounds.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getEstimateRounds();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getexecutionstories.php
Normal file
16
test/model/story/getexecutionstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getExecutionStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getexecutionstorypairs.php
Normal file
16
test/model/story/getexecutionstorypairs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getExecutionStoryPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getidlistwithtask.php
Normal file
16
test/model/story/getidlistwithtask.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getIdListWithTask();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getkanbangroupdata.php
Normal file
16
test/model/story/getkanbangroupdata.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getKanbanGroupData();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getparentstorypairs.php
Normal file
16
test/model/story/getparentstorypairs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getParentStoryPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getplanstories.php
Normal file
16
test/model/story/getplanstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getPlanStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getplanstorypairs.php
Normal file
16
test/model/story/getplanstorypairs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getPlanStoryPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getproductstories.php
Normal file
16
test/model/story/getproductstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getProductStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getproductstorypairs.php
Normal file
16
test/model/story/getproductstorypairs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getProductStoryPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getrelation.php
Normal file
16
test/model/story/getrelation.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getRelation();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getrequierements.php
Normal file
16
test/model/story/getrequierements.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getRequierements();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getreviewerpairs.php
Normal file
16
test/model/story/getreviewerpairs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getReviewerPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getstories2link.php
Normal file
16
test/model/story/getstories2link.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getStories2Link();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getstoriesbyplanidlist.php
Normal file
16
test/model/story/getstoriesbyplanidlist.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getStoriesByPlanIdList();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getstoryrelation.php
Normal file
16
test/model/story/getstoryrelation.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getStoryRelation();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getstoryrelationcounts.php
Normal file
16
test/model/story/getstoryrelationcounts.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getStoryRelationCounts();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getstoryspecs.php
Normal file
16
test/model/story/getstoryspecs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getStorySpecs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getteammembers.php
Normal file
16
test/model/story/getteammembers.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getTeamMembers();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
19
test/model/story/getteststories.php
Normal file
19
test/model/story/getteststories.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getTestStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
$storyIdList1 = array(9, 41, 73);
|
||||
$storyIdList2 = array(1, 2, 3);
|
||||
|
||||
r($story->getTestStoriesTest($storyIdList1, 103)) && p('9') && e('9');
|
||||
r($story->getTestStoriesTest($storyIdList, 103)) && p() && e('0');
|
||||
16
test/model/story/gettoandcclist.php
Normal file
16
test/model/story/gettoandcclist.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getToAndCcList();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/gettrackbyid.php
Normal file
16
test/model/story/gettrackbyid.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getTrackByID();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/gettracks.php
Normal file
16
test/model/story/gettracks.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getTracks();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getuserstories.php
Normal file
16
test/model/story/getuserstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getUserStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getuserstorypairs.php
Normal file
16
test/model/story/getuserstorypairs.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getUserStoryPairs();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getversion.php
Normal file
16
test/model/story/getversion.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getVersion();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getversions.php
Normal file
16
test/model/story/getversions.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getVersions();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/getzerocase.php
Normal file
16
test/model/story/getzerocase.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->getZeroCase();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/linkstories.php
Normal file
16
test/model/story/linkstories.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->linkStories();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/linkstory.php
Normal file
16
test/model/story/linkstory.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->linkStory();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/mergechartoption.php
Normal file
16
test/model/story/mergechartoption.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->mergeChartOption();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/mergeplantitle.php
Normal file
16
test/model/story/mergeplantitle.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->mergePlanTitle();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/mergereviewer.php
Normal file
16
test/model/story/mergereviewer.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->mergeReviewer();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/printassignedhtml.php
Normal file
16
test/model/story/printassignedhtml.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->printAssignedHtml();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/printcell.php
Normal file
16
test/model/story/printcell.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->printCell();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/recall.php
Normal file
16
test/model/story/recall.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->recall();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/recordreviewaction.php
Normal file
16
test/model/story/recordreviewaction.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->recordReviewAction();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/replaceurlang.php
Normal file
16
test/model/story/replaceurlang.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->replaceURLang();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/reportcondition.php
Normal file
16
test/model/story/reportcondition.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->reportCondition();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/review.php
Normal file
16
test/model/story/review.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->review();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/saveestimateinfo.php
Normal file
16
test/model/story/saveestimateinfo.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->saveEstimateInfo();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/setstage.php
Normal file
16
test/model/story/setstage.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->setStage();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/setstatusbyreviewrules.php
Normal file
16
test/model/story/setstatusbyreviewrules.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->setStatusByReviewRules();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/sortstoriesofplan.php
Normal file
16
test/model/story/sortstoriesofplan.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->sortStoriesOfPlan();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/subdivide.php
Normal file
16
test/model/story/subdivide.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->subdivide();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/superreview.php
Normal file
16
test/model/story/superreview.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->superReview();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
16
test/model/story/unlinkstory.php
Normal file
16
test/model/story/unlinkstory.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
|
||||
include dirname(dirname(dirname(__FILE__))) . '/class/story.class.php';
|
||||
su('admin');
|
||||
|
||||
/**
|
||||
|
||||
title=测试 storyModel->unlinkStory();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
*/
|
||||
|
||||
$story = new storyTest();
|
||||
|
||||
r() && p() && e();
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user