/** * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException * @expectedExceptionMessage Task prout not found. */ public function testConvertFailure() { $converter = new TaskConverter(self::$DI['app']['EM']->getRepository('Phraseanet:Task')); $converter->convert('prout'); }
/** * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException * @expectedExceptionMessage Task prout not found. */ public function testConvertFailure() { $converter = new TaskConverter(self::$DI['app']['EM']); $converter->convert('prout'); }