* kanban: modify unit test.

This commit is contained in:
sunguangming
2023-12-18 09:38:18 +08:00
parent 08bc60b9c7
commit 61dd6bc9a8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -525,7 +525,7 @@ class kanbanModel extends model
$cardID = $this->dao->lastInsertID();
$this->file->saveUpload('kanbancard', $cardID);
$this->file->updateObjectID($this->post->uid, $cardID, 'kanbancard');
$this->addKanbanCell((int)$card->kanban, (int)$this->post->lane, $columnID, 'common', $cardID);
$this->addKanbanCell((int)$card->kanban, (int)$this->post->lane, $columnID, 'common', (string)$cardID);
return $cardID;
}
+2 -1
View File
@@ -184,7 +184,8 @@ class kanbanTest
*/
public function createCardTest($columnID, $card)
{
$_POST['lane'] = 1;
$_POST['lane'] = 1;
$_POST['uid'] = 'test';
$objectID = $this->objectModel->createCard($columnID, $card);