/** * testDateTimeModlog * * @see 0000996: add changes in relations/linked objects to modlog/history */ public function testDateTimeModlog() { $task = Tasks_Controller_Task::getInstance()->create(new Tasks_Model_Task(array('summary' => 'test task'))); $task->due = Tinebase_DateTime::now(); $updatedTask = Tasks_Controller_Task::getInstance()->update($task); $task->seq = 1; $modlog = $this->_modLogClass->getModificationsBySeq($task, 2); $this->assertEquals(1, count($modlog)); $this->assertEquals((string) $task->due, (string) $modlog->getFirstRecord()->new_value, 'new value mismatch: ' . print_r($modlog->toArray(), TRUE)); }