Separating ThingRecord object from Thingy

This commit is contained in:
Yung Han Khoe 2009-11-16 11:53:14 +01:00
parent 7188b11b77
commit df84c60d6a
3 changed files with 67 additions and 20 deletions

View file

@ -283,10 +283,14 @@ cmp_deeply(
'Getting updated thing data: getViewThingVars returns correct field_loop with updated value.'
);
$thingy->deleteThingData($thingId,$newThingDataId);
is($thingy->getViewThingVars($thingId,$newThingDataId),undef,'Thing data was succesfully deleted, getViewThingVars returns undef.');
my @thingDataIds = @{WebGUI::Asset::Wobject::Thingy::ThingRecord->getAllIds($session)};
is(WebGUI::Utility::isIn(@thingDataIds,$newThingDataId),'0','Thing data was succesfully deleted');
=cut
$json = $thingy->www_viewThingDataViaAjax($thingId,$newThingDataId);
$dataFromJSON = JSON->new->decode($json);
@ -299,6 +303,7 @@ cmp_deeply(
);
($newThingDataId,$errors) = $thingy->editThingDataSave($thingId,'new',{"field_".$fieldId => 'second test value'});
=cut
#################################################################
#