Example #1
0
 /**
  * @test
  */
 public function getRegistrationPossibleReturnsFalseIfEventMaxParticipantsReached()
 {
     $registration = new Registration();
     $registration->setFirstname('John');
     $registration->setLastname('Doe');
     $startdate = new \DateTime();
     $startdate->add(\DateInterval::createFromDateString('tomorrow'));
     $this->subject->setStartdate($startdate);
     $this->subject->setMaxParticipants(1);
     $this->subject->addRegistration($registration);
     $this->assertFalse($this->subject->getRegistrationPossible());
 }
 /**
  * @test
  * @return void
  */
 public function setFirstnameForStringSetsFirstname()
 {
     $this->subject->setFirstname('Conceived at T3CON10');
     $this->assertAttributeEquals('Conceived at T3CON10', 'firstname', $this->subject);
 }