| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: records.test,v 1.1 2008/06/27 05:31:27 carson Exp $ |
| 3 |
|
|
| 4 |
class bookingsAPIRecords extends DrupalTestCase { |
class bookingsAPIRecords extends DrupalTestCase { |
| 5 |
/** |
/** |
| 65 |
'start' => '2008-01-01 07:00:00', |
'start' => '2008-01-01 07:00:00', |
| 66 |
'end' => '2008-01-01 07:30:00', |
'end' => '2008-01-01 07:30:00', |
| 67 |
'finalized' => 1, |
'finalized' => 1, |
| 68 |
'ical_rrule' => 'RRULE:FREQ=DAILY;INTERVAL=3;UNTIL=20080110T000000;WKST=MO', |
'rrule' => 'RRULE:FREQ=DAILY;INTERVAL=3;UNTIL=20080110T000000;WKST=MO', |
| 69 |
'ical_rrule_until' => '2008-01-10 00:00:00' |
'rrule_until' => '2008-01-10 00:00:00' |
| 70 |
); |
); |
| 71 |
|
|
| 72 |
$insertResult = bookingsapi_booking_save($this->bookingUnfinal); |
$insertResult = bookingsapi_booking_save($this->bookingUnfinal); |
| 106 |
'end' => '2008-01-01 14:00:00', |
'end' => '2008-01-01 14:00:00', |
| 107 |
'finalized' => 0, |
'finalized' => 0, |
| 108 |
'priority' => 1, |
'priority' => 1, |
| 109 |
'ical_rrule' => 'RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20080105T000000;WKST=MO', |
'rrule' => 'RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20080105T000000;WKST=MO', |
| 110 |
'ical_rrule_until' => '2008-01-05 00:00:00' |
'rrule_until' => '2008-01-05 00:00:00' |
| 111 |
); |
); |
| 112 |
$insertResult = bookingsapi_availability_save($this->AVA_F_repeat); |
$insertResult = bookingsapi_availability_save($this->AVA_F_repeat); |
| 113 |
$this->assertEqual($insertResult, SAVED_NEW); |
$this->assertEqual($insertResult, SAVED_NEW); |