| @@ 62-74 (lines=13) @@ | ||
| 59 | ||
| 60 | ||
| 61 | ||
| 62 | public function testOviGetEvent() |
|
| 63 | { |
|
| 64 | $oviUser = self::$mock->getOviUser(); |
|
| 65 | $oviBackend = self::$mock->getOviBackend(); |
|
| 66 | ||
| 67 | $calendar = $oviBackend->PersonalCalendar($oviUser); |
|
| 68 | $collection = $oviBackend->CalendarEventCollection($calendar); |
|
| 69 | ||
| 70 | $period = $oviBackend->getPeriod($collection, 'LIBCALDAV_UNITTEST_2'); |
|
| 71 | ||
| 72 | $this->assertInstanceOf('bab_CalendarPeriod', $period); |
|
| 73 | $this->assertEquals('Test event', $period->getProperty('SUMMARY')); |
|
| 74 | } |
|
| 75 | ||
| 76 | ||
| 77 | protected function getPeriod() |
|
| @@ 63-74 (lines=12) @@ | ||
| 60 | } |
|
| 61 | ||
| 62 | ||
| 63 | public function testEventGet() |
|
| 64 | { |
|
| 65 | $id_user = self::$mock->getCaldavUser(); |
|
| 66 | $backend = self::$mock->getCaldavBackend(); |
|
| 67 | $calendar = $backend->PersonalCalendar($id_user); |
|
| 68 | $collection = $backend->CalendarEventCollection($calendar); |
|
| 69 | ||
| 70 | $period = $backend->getPeriod($collection, 'LIBCALDAV_UNITTEST_1'); |
|
| 71 | ||
| 72 | $this->assertInstanceOf('caldav_CalendarPeriod', $period); |
|
| 73 | $this->assertEquals('Test event', $period->getProperty('SUMMARY')); |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||