Exemplo n.º 1
0
 function testThatStatusSettingIsWorking()
 {
     $data = array('kursus_id' => $this->createKortKursusId(), 'antal_deltagere' => 1);
     $session_id = rand(1, 1000000000);
     $tilmelding = new VIH_Model_KortKursus_OnlineTilmelding($session_id);
     $this->assertTrue($tilmelding->start($data) > 0);
     $this->assertEquals('undervejs', $tilmelding->getStatus());
     $tilmelding->setStatus('reserveret');
     $this->assertEquals('reserveret', $tilmelding->getStatus());
     $tilmelding->setStatus('tilmeldt');
     $this->assertEquals('tilmeldt', $tilmelding->getStatus());
 }