* Refactor zanodeModel::setAutomationSetting, and add its unit test.

This commit is contained in:
liumengyi
2023-12-26 14:48:07 +08:00
parent 5ceb2e5303
commit 094cea1dc2
5 changed files with 125 additions and 14 deletions
+6 -1
View File
@@ -1301,7 +1301,12 @@ class testcase extends control
if($_POST)
{
$this->zanode->setAutomationSetting();
$automation = form::data($this->config->testcase->form->automation)
->setIF($this->post->id, 'id', $this->post->id)
->setDefault('createdBy', $this->app->user->account)
->setdefault('createddate', helper::now())
->get();
$this->zanode->setAutomationSetting($automation);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));