Separating ThingRecord object from Thingy
This commit is contained in:
parent
7188b11b77
commit
df84c60d6a
3 changed files with 67 additions and 20 deletions
|
|
@ -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
|
||||
|
||||
#################################################################
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue