diff options
Diffstat (limited to 'tests/units/Model/ProjectTest.php')
-rw-r--r-- | tests/units/Model/ProjectTest.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/units/Model/ProjectTest.php b/tests/units/Model/ProjectTest.php index 9d7b6c0d..3373037d 100644 --- a/tests/units/Model/ProjectTest.php +++ b/tests/units/Model/ProjectTest.php @@ -133,6 +133,17 @@ class ProjectTest extends Base $this->assertGreaterThan($now, $project['last_modified']); } + public function testGetAllIds() + { + $p = new Project($this->container); + + $this->assertEquals(1, $p->create(array('name' => 'UnitTest'))); + + $this->assertEmpty($p->getAllByIds(array())); + $this->assertNotEmpty($p->getAllByIds(array(1, 2))); + $this->assertCount(1, $p->getAllByIds(array(1))); + } + public function testIsLastModified() { $p = new Project($this->container); |