add doctrine array collection

This commit is contained in:
DavidBadura
2015-04-22 10:44:11 +00:00
parent 43318c7c0e
commit 562f00171a
4 changed files with 51 additions and 62 deletions

View File

@@ -158,7 +158,10 @@ class TaskManagerTest extends \PHPUnit_Framework_TestCase
$this->taskManager->save($task1);
$this->taskManager->save($task2);
$this->assertCount(2, $this->taskManager->filter());
$result = $this->taskManager->filter();
$this->assertInstanceOf('Doctrine\Common\Collections\ArrayCollection', $result);
$this->assertCount(2, $result);
}
public function testMultiFilter()