/**
  * testSetRelationToFileInPersonalFolder
  * 
  * @see 0006736: Create File (Edit)InfoDialog
  */
 public function testSetRelationToFileInPersonalFolder()
 {
     $node = $this->testCreateFileNodeWithUTF8Filenames();
     $node['relations'] = array($this->_getRelationData($node));
     $node = $this->_json->saveNode($node);
     $adbJson = new Addressbook_Frontend_Json();
     $contact = $adbJson->getContact($node['relations'][0]['related_id']);
     $this->assertEquals(1, count($contact['relations']));
     $relatedNode = $contact['relations'][0]['related_record'];
     $this->assertEquals($node['name'], $relatedNode['name']);
     $pathRegEx = '@^/personal/[a-f0-9-]+/[0-9]+/' . preg_quote($relatedNode['name']) . '$@';
     $this->assertTrue(preg_match($pathRegEx, $relatedNode['path']) === 1, 'path mismatch: ' . print_r($relatedNode, TRUE) . ' regex: ' . $pathRegEx);
 }