/** * testGetUpdate * * @see 0006736: Create File (Edit)InfoDialog * @return array */ public function testGetUpdate() { $this->testCreateFileNodes(); $filter = array(array('field' => 'path', 'operator' => 'equals', 'value' => '/' . Tinebase_Model_Container::TYPE_SHARED . '/testcontainer')); $result = $this->_json->searchNodes($filter, array()); $this->assertEquals(2, $result['totalcount']); $node = $this->_json->getNode($result['results'][0]['id']); $this->assertEquals('file', $node['type']); $node['description'] = 'UNITTEST'; $node = $this->_json->saveNode($node); $this->assertEquals('UNITTEST', $node['description']); return $node; }