From 339c990577a0c6fa8fd99959fe52aa25eff59c8f Mon Sep 17 00:00:00 2001 From: Fabiano Pereira Date: Thu, 3 Sep 2015 16:27:28 -0300 Subject: #1144 Add description field to swimlane. --- tests/units/TaskDuplicationTest.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'tests/units/TaskDuplicationTest.php') diff --git a/tests/units/TaskDuplicationTest.php b/tests/units/TaskDuplicationTest.php index e87fe9cc..25b9e9fe 100644 --- a/tests/units/TaskDuplicationTest.php +++ b/tests/units/TaskDuplicationTest.php @@ -225,8 +225,8 @@ class TaskDuplicationTest extends Base $this->assertEquals(1, $p->create(array('name' => 'test1'))); $this->assertEquals(2, $p->create(array('name' => 'test2'))); - $this->assertNotFalse($s->create(1, 'Swimlane #1')); - $this->assertNotFalse($s->create(2, 'Swimlane #1')); + $this->assertNotFalse($s->create(array('project_id' => 1, 'name' => 'Swimlane #1'))); + $this->assertNotFalse($s->create(array('project_id' => 2, 'name' => 'Swimlane #1'))); // We create a task $this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 2, 'swimlane_id' => 1))); @@ -258,9 +258,9 @@ class TaskDuplicationTest extends Base $this->assertEquals(1, $p->create(array('name' => 'test1'))); $this->assertEquals(2, $p->create(array('name' => 'test2'))); - $this->assertNotFalse($s->create(1, 'Swimlane #1')); - $this->assertNotFalse($s->create(2, 'Swimlane #2')); - + $this->assertNotFalse($s->create(array('project_id' => 1, 'name' => 'Swimlane #1'))); + $this->assertNotFalse($s->create(array('project_id' => 2, 'name' => 'Swimlane #2'))); + // We create a task $this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 2, 'swimlane_id' => 1))); @@ -291,9 +291,9 @@ class TaskDuplicationTest extends Base $this->assertEquals(1, $p->create(array('name' => 'test1'))); $this->assertEquals(2, $p->create(array('name' => 'test2'))); - $this->assertNotFalse($s->create(1, 'Swimlane #1')); - $this->assertNotFalse($s->create(2, 'Swimlane #1')); - $this->assertNotFalse($s->create(2, 'Swimlane #2')); + $this->assertNotFalse($s->create(array('project_id' => 1, 'name' => 'Swimlane #1'))); + $this->assertNotFalse($s->create(array('project_id' => 2, 'name' => 'Swimlane #1'))); + $this->assertNotFalse($s->create(array('project_id' => 2, 'name' => 'Swimlane #2'))); // We create a task $this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 2, 'swimlane_id' => 1))); @@ -574,8 +574,8 @@ class TaskDuplicationTest extends Base $this->assertEquals(1, $p->create(array('name' => 'test1'))); $this->assertEquals(2, $p->create(array('name' => 'test2'))); - $this->assertNotFalse($s->create(1, 'Swimlane #1')); - $this->assertNotFalse($s->create(2, 'Swimlane #1')); + $this->assertNotFalse($s->create(array('project_id' => 1, 'name' => 'Swimlane #1'))); + $this->assertNotFalse($s->create(array('project_id' => 2, 'name' => 'Swimlane #1'))); // We create a task $this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 2, 'swimlane_id' => 1))); @@ -607,8 +607,8 @@ class TaskDuplicationTest extends Base $this->assertEquals(1, $p->create(array('name' => 'test1'))); $this->assertEquals(2, $p->create(array('name' => 'test2'))); - $this->assertNotFalse($s->create(1, 'Swimlane #1')); - $this->assertNotFalse($s->create(2, 'Swimlane #2')); + $this->assertNotFalse($s->create(array('project_id' => 1, 'name' => 'Swimlane #1'))); + $this->assertNotFalse($s->create(array('project_id' => 2, 'name' => 'Swimlane #2'))); // We create a task $this->assertEquals(1, $tc->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 2, 'swimlane_id' => 1))); -- cgit v1.2.3