Fix unit tests

This commit is contained in:
Romain Neutron
2014-02-27 17:52:49 +01:00
parent 13e661c4b0
commit 894c5fe620
41 changed files with 368 additions and 501 deletions

View File

@@ -104,12 +104,6 @@ class TaskManipulatorTest extends \PhraseanetTestCase
$this->assertEquals(0, $task->getCrashed());
}
public function testGetRepository()
{
$manipulator = new TaskManipulator(self::$DI['app']['EM'], $this->createNotifierMock(), self::$DI['app']['translator'], self::$DI['app']['repo.tasks']);
$this->assertSame(self::$DI['app']['EM']->getRepository('Phraseanet:Task'), $manipulator->getRepository());
}
public function testCreateEmptyCollection()
{
$collection = $this->getMockBuilder('collection')