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