public function testGetItem()
 {
     /* @var $item \PHPUnit_Framework_MockObject_MockObject|Item */
     $item = $this->getMock('\\AnimeDb\\Bundle\\CatalogBundle\\Entity\\Item');
     $event = new DeleteItemFiles($item);
     $this->assertEquals($item, $event->getItem());
 }
Ejemplo n.º 2
0
 /**
  * @param DeleteItemFiles $event
  */
 public function onDeleteItemFiles(DeleteItemFiles $event)
 {
     $this->sendNotice(self::NOTICE_TYPE_ITEM_FILES_NOT_FOUND, ['item' => $event->getItem()]);
 }