fixed #10565: Survey: add question doing double-create
This commit is contained in:
parent
3fccab7743
commit
b5186bfbab
5 changed files with 79 additions and 31 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue