/** * test update application * * @todo test real update process; currently this test case only tests updating an already uptodate application */ public function testUpdateApplications() { $applications = new Tinebase_Record_RecordSet('Tinebase_Model_Application'); $applications->addRecord(Tinebase_Application::getInstance()->getApplicationByName('ActiveSync')); $result = $this->_uit->updateApplications($applications); $this->assertTrue(is_array($result)); //Setup_Controller::updateApplications just returns an array of messages and throws exceptions on failure }
/** * test update application * * @todo test real update process; currently this test case only tests updating an already uptodate application */ public function testUpdateApplications() { $result = $this->_json->updateApplications(array('ActiveSync')); $this->assertTrue($result['success']); }