diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-08-18 21:39:43 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-08-18 21:39:43 -0400 |
commit | 6b4786624be70c4c024b829407a7496eec361cbb (patch) | |
tree | 51999c360f0f0c965b317ba31419118ef6ace8a3 /tests | |
parent | b04cbc419b60df02ca59a9bbf87cd840614b09a4 (diff) |
Add start and end date for projects
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/ProjectTest.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/units/ProjectTest.php b/tests/units/ProjectTest.php index 45bc63fc..b7f168d7 100644 --- a/tests/units/ProjectTest.php +++ b/tests/units/ProjectTest.php @@ -44,6 +44,18 @@ class ProjectTest extends Base $this->assertEmpty($project['token']); } + public function testCreationWithStartAndDate() + { + $p = new Project($this->container); + + $this->assertEquals(1, $p->create(array('name' => 'UnitTest', 'start_date' => '2015-01-01', 'end_date' => '2015-12-31'))); + + $project = $p->getById(1); + $this->assertNotEmpty($project); + $this->assertEquals('2015-01-01', $project['start_date']); + $this->assertEquals('2015-12-31', $project['end_date']); + } + public function testCreationWithDefaultCategories() { $p = new Project($this->container); |