* Add case of execution model.

This commit is contained in:
田淑杰
2023-01-12 08:26:58 +08:00
parent f5605ff9b4
commit d97b6a1105
2 changed files with 49 additions and 0 deletions
+14
View File
@@ -13,6 +13,20 @@ class executionTest
$this->objectModel = $tester->loadModel('execution');
}
/**
* Set project into session.
*
* @param int $executionID
* @access public
* @return int
*/
public function setProjectSessionTest($executionID)
{
unset($_SESSION['project']);
$this->objectModel->setProjectSession($executionID);
return empty($_SESSION['project']) ? 0 : $_SESSION['project'];
}
/**
* Test save state.
*