Projects with duplicate name are now allowed

This commit is contained in:
Frederic Guillot
2015-11-15 19:29:31 -05:00
parent 968ae47454
commit adb35896d8
29 changed files with 57 additions and 44 deletions

View File

@@ -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);