Skip to content
Snippets Groups Projects
Commit ca14782b authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #23421: fix RT

parent 81fb6410
Branches
Tags
4 merge requests!903Master,!902Hotline master,!894Hotline #23632 ghost form,!891Hotline #23421 rang resa pergame
......@@ -49,9 +49,8 @@ class Class_Reservation extends Storm_Model_Abstract {
protected $_default_attribute_values = ['rang' => 0];
public function beforeSave() {
if ($this->isNew())
$this->setDateResa(date('Y-m-d H:i:s', $this->getCurrentTime()));
public function __construct() {
$this->setDateResa(date('Y-m-d H:i:s', $this->getCurrentTime()));
}
......
......@@ -329,12 +329,10 @@ class PhaseReservationValidCronFirstRunTest extends PhaseReservationTestCase {
$this->assertEquals('2015-02-03', $hold->getDateResa());
}
/**
@test
*/
public function HoldRangShouldBe7() {
/** @test */
public function holdRangShouldBe7() {
$hold = Class_Reservation::findFirstBy(['id_pergame' =>26831]);
$this->assertEquals('7', $hold->getRang());
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment