0011050: VEVENT converter: fix timezone handling for all day events
[tine20] / tests / tine20 / Calendar / Controller / EventTests.php
index 5263be9..3cfb684 100644 (file)
@@ -391,7 +391,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
         $this->assertFalse(in_array($persistentEvent->getId(), $events->getId()), 'event in deleted (display) container shuld not be found');
     }
     
-    public function testCreateEventWithConfict()
+    public function testCreateEventWithConflict()
     {
         $this->_testNeedsTransaction();
         
@@ -424,7 +424,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
         return $persitentConflictEvent;
     }
     
-    public function testCreateEventWithConfictFromGroupMember()
+    public function testCreateEventWithConflictFromGroupMember()
     {
         $event = $this->_getEvent();
         $event->attendee = $this->_getAttendee();
@@ -496,7 +496,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
     
     public function testUpdateWithConflictNoTimechange()
     {
-        $persitentConflictEvent = $this->testCreateEventWithConfict();
+        $persitentConflictEvent = $this->testCreateEventWithConflict();
         $persitentConflictEvent->summary = 'only time updates should recheck free/busy';
         
         $this->_controller->update($persitentConflictEvent, TRUE);
@@ -504,7 +504,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
     
     public function testUpdateWithConflictAttendeeChange()
     {
-        $persitentConflictEvent = $this->testCreateEventWithConfict();
+        $persitentConflictEvent = $this->testCreateEventWithConflict();
         $persitentConflictEvent->summary = 'attendee adds should recheck free/busy';
         
         $defaultUserGroup = Tinebase_Group::getInstance()->getDefaultGroup();
@@ -520,7 +520,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
     
     public function testUpdateWithConflictWithTimechange()
     {
-        $persitentConflictEvent = $this->testCreateEventWithConfict();
+        $persitentConflictEvent = $this->testCreateEventWithConflict();
         $persitentConflictEvent->summary = 'time updates should recheck free/busy';
         $persitentConflictEvent->dtend->addHour(1);
         
@@ -1357,11 +1357,9 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
         ));
     
         try {
-            $cf = Tinebase_CustomField::getInstance()->addCustomField($cfData);
+            Tinebase_CustomField::getInstance()->addCustomField($cfData);
         } catch (Zend_Db_Statement_Exception $zdse) {
-            // customfield already exists
-            $cfs = Tinebase_CustomField::getInstance()->getCustomFieldsForApplication('Calendar');
-            $cf = $cfs->filter('name', $name)->getFirstRecord();
+            // custom field already exists
         }
     
         $event = new Calendar_Model_Event(array(