diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-23 18:23:20 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-23 18:23:20 -0500 |
commit | 81df22de238bc36d810b95ad67a4426db095fbab (patch) | |
tree | 53231a3d46b6b7c54eaec515016247984cf7a4e4 /tests/units/CategoryTest.php | |
parent | f684602ebedc0adc4a329693ba524ad46d5cd8b0 (diff) |
Create TaskDuplication model
Diffstat (limited to 'tests/units/CategoryTest.php')
-rw-r--r-- | tests/units/CategoryTest.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/units/CategoryTest.php b/tests/units/CategoryTest.php index f169e961..638f3fe4 100644 --- a/tests/units/CategoryTest.php +++ b/tests/units/CategoryTest.php @@ -32,6 +32,12 @@ class CategoryTest extends Base $this->assertEquals(2, $category['id']); $this->assertEquals('Category #2', $category['name']); $this->assertEquals(1, $category['project_id']); + + $this->assertEquals(2, $c->getIdByName(1, 'Category #2')); + $this->assertEquals(0, $c->getIdByName(2, 'Category #2')); + + $this->assertEquals('Category #2', $c->getNameById(2)); + $this->assertEquals('', $c->getNameById(23)); } public function testRemove() |