* Optimize update unit test for block.

This commit is contained in:
孔令茂
2023-04-27 16:51:08 +08:00
parent 18127fba3e
commit 899e69aa3f
4 changed files with 93 additions and 3 deletions
+16
View File
@@ -23,6 +23,22 @@ class blockTest
return $blockID;
}
/**
* Update a block.
*
* @param object $block
* @access public
* @return int|false
*/
public function updateTest($block)
{
$blockID = $this->objectModel->update($block);
if(dao::isError()) return dao::getError();
return $blockID;
}
/**
* Test save params.
*