fixed #10565: Survey: add question doing double-create

This commit is contained in:
Patrick Donelan 2009-06-22 07:08:08 +00:00
parent 3fccab7743
commit b5186bfbab
5 changed files with 79 additions and 31 deletions

View file

@ -1980,7 +1980,7 @@ cmp_deeply(
$address = $s->newObject([0]);
is(scalar @{$s->questions}, 1, '..now 1 question');
is(scalar @{$s->questions([0])}, 1, '..in the first section');
is($s->questions([2]), undef, '..and none in the second section (which doesnt even exist)');
cmp_deeply($s->questions([2]), [], '..and none in the second section (which doesnt even exist)');
# Add a question to second section
$address = $s->newObject([1]);