Exemple #1
0
 public function onFileProfileAdd(FileProfileEvent $event)
 {
     $profile = $event->getProfile();
     if ($this->belongsToProfile($profile->getIdentifier())) {
         $profile->addPlugin($this);
     }
 }
 /**
  * @test
  */
 public function eventShouldInitializeCorrectly()
 {
     $profile = $this->getMockedFileProfile();
     $event = new FileProfileEvent($profile);
     $profile2 = $event->getProfile();
     $this->assertSame($profile, $profile2);
 }