Remove default swimlane
This commit is contained in:
@@ -39,4 +39,15 @@ class TaskValidatorTest extends Base
|
||||
$result = $taskValidator->validateCreation(array('project_id' => 1, 'title' => 'test', 'score' => -2147483648));
|
||||
$this->assertFalse($result[0]);
|
||||
}
|
||||
|
||||
public function testSwimlaneIdField()
|
||||
{
|
||||
$taskValidator = new TaskValidator($this->container);
|
||||
|
||||
$result = $taskValidator->validateCreation(array('project_id' => 1, 'title' => 'test', 'swimlane_id' => 1));
|
||||
$this->assertTrue($result[0]);
|
||||
|
||||
$result = $taskValidator->validateCreation(array('project_id' => 1, 'title' => 'test', 'swimlane_id' => 0));
|
||||
$this->assertFalse($result[0]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user