Ejemplo n.º 1
0
 /**
  * @expectedException \Xiidea\EasyAuditBundle\Exception\UnrecognizedEntityException
  */
 public function testCreateEventObjectFromArrayThrowsExceptionOnInvalidEntity()
 {
     $this->event = new WithEmbeddedResolver();
     $this->container->expects($this->at(0))->method('getParameter')->with($this->equalTo('xiidea.easy_audit.entity_class'))->willReturn('Xiidea\\EasyAuditBundle\\Tests\\Fixtures\\ORM\\Movie');
     $this->initiateContainerWithDebugMode(true, 1);
     $this->resolverFactory->getEventLog($this->event, 'embedded');
 }
Ejemplo n.º 2
0
 public function resolveEventHandler(Event $event, $eventName)
 {
     $eventInfo = $this->resolverFactory->getEventLog($event, $eventName);
     $this->loggerFactory->executeLoggers($eventInfo);
 }