summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2018-10-02 11:12:36 -0700
committerFrédéric Guillot <fred@kanboard.net>2018-10-02 11:12:36 -0700
commita08d8673e9cd65e3c9050b09d73252848a1ceecd (patch)
treea83a07d969b5d95ccd7c4d70a1d9028aa901d7eb /tests/units
parentb6e0b9cc09c3a2853c5b52b9e0f0b845d88d99bf (diff)
Duplicate tag color when duplicating projects
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/Model/TagDuplicationModelTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/units/Model/TagDuplicationModelTest.php b/tests/units/Model/TagDuplicationModelTest.php
index 0c95c0fd..0422ba17 100644
--- a/tests/units/Model/TagDuplicationModelTest.php
+++ b/tests/units/Model/TagDuplicationModelTest.php
@@ -19,13 +19,15 @@ class TagDuplicationModelTest extends Base
$this->assertEquals(1, $tagModel->create(0, 'Tag 1'));
$this->assertEquals(2, $tagModel->create(1, 'Tag 2'));
- $this->assertEquals(3, $tagModel->create(1, 'Tag 3'));
+ $this->assertEquals(3, $tagModel->create(1, 'Tag 3', 'green'));
$this->assertTrue($tagDuplicationModel->duplicate(1, 2));
$tags = $tagModel->getAllByProject(2);
$this->assertCount(2, $tags);
$this->assertEquals('Tag 2', $tags[0]['name']);
+ $this->assertEquals('', $tags[0]['color_id']);
$this->assertEquals('Tag 3', $tags[1]['name']);
+ $this->assertEquals('green', $tags[1]['color_id']);
}
}