* kanban: modify unit test.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user