/**
  * @group legacy
  */
 public function testAuthenticateLegacy()
 {
     if (!method_exists($this->event, 'setDispatcher')) {
         $this->markTestSkipped('Legacy test which requires Symfony <3.0.');
     }
     $this->event->setDispatcher($this->eventDispatcher);
     $this->event->setName(FOSUserEvents::REGISTRATION_COMPLETED);
     $this->listener->authenticate($this->event);
 }
Exemplo n.º 2
0
 public function testAuthenticateLegacy()
 {
     $this->event->setDispatcher($this->eventDispatcher);
     $this->event->setName(FOSUserEvents::REGISTRATION_COMPLETED);
     $this->listener->authenticate($this->event);
 }