Refactor API tests, add tests for feeds

This commit is contained in:
Romain Neutron
2012-06-11 18:31:39 +02:00
parent 8d60716565
commit 05a2c62cf4
7 changed files with 127 additions and 3080 deletions

View File

@@ -74,11 +74,11 @@ class caption_Field_Value implements cache_cacheableInterface
{
try {
$datas = $this->get_data_from_cache();
$this->value = $datas['value'];
$this->VocabularyType = $datas['vocabularyType'] ? Vocabulary\Controller::get($datas['vocabularyType']) : null;
$this->VocabularyId = $datas['vocabularyId'];
return $this;
} catch (\Exception $e) {
@@ -534,7 +534,7 @@ class caption_Field_Value implements cache_cacheableInterface
*/
public function get_cache_key($option = null)
{
return 'caption_fieldvalue_' . $this->record->get_serialize_key() . ($option ? '_' . $option : '');
return 'caption_fieldvalue_' . $this->id . '_' . $this->record->get_serialize_key() . ($option ? '_' . $option : '');
}
/**