diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-11-15 19:29:31 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-11-15 19:29:31 -0500 |
commit | adb35896d8c5bcc6673188921868e472ba35278e (patch) | |
tree | 1261fad74366d8d9e002e2f7cdbe39cd40109155 /tests | |
parent | 968ae474541302c92f8ec62e9520299c8c95a57a (diff) |
Projects with duplicate name are now allowed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/Model/ProjectTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/units/Model/ProjectTest.php b/tests/units/Model/ProjectTest.php index f90c0dc1..56791700 100644 --- a/tests/units/Model/ProjectTest.php +++ b/tests/units/Model/ProjectTest.php @@ -44,6 +44,14 @@ class ProjectTest extends Base $this->assertEmpty($project['token']); } + public function testCreationWithDuplicateName() + { + $p = new Project($this->container); + + $this->assertEquals(1, $p->create(array('name' => 'UnitTest'))); + $this->assertEquals(2, $p->create(array('name' => 'UnitTest'))); + } + public function testCreationWithStartAndDate() { $p = new Project($this->container); |