Exemplo n.º 1
0
 /**
  * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  * @expectedExceptionMessage Basket prout not found.
  */
 public function testConvertFailure()
 {
     $converter = new BasketConverter(self::$DI['app']['orm.em']->getRepository('Phraseanet:Basket'));
     $converter->convert('prout');
 }
 /**
  * @expectedException \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  * @expectedExceptionMessage Basket prout not found.
  */
 public function testConvertFailure()
 {
     $converter = new BasketConverter(self::$DI['app']['EM']);
     $converter->convert('prout');
 }