public function getEventLogInfo(Event $event, $eventName)
 {
     $info = new AuditLog();
     $info->setDescription($eventName);
     $info->setType($eventName);
     return $info;
 }
Beispiel #2
0
 public function testSettingLevelCase()
 {
     $log = new AuditLog();
     $log->setLevel('info');
     $this->assertEquals('info', $log->getLevel());
     $log->setLevel('INFO');
     $this->assertEquals('INFO', $log->getLevel());
 }