Update Ogone test for new payment driver code.
This commit is contained in:
parent
1f774a8074
commit
440981827e
1 changed files with 12 additions and 1 deletions
|
|
@ -110,6 +110,13 @@ my $expectDefinition = {
|
||||||
hoverHelp => ignore(),
|
hoverHelp => ignore(),
|
||||||
defaultValue => 1,
|
defaultValue => 1,
|
||||||
},
|
},
|
||||||
|
summaryTemplateId => {
|
||||||
|
fieldType => 'template',
|
||||||
|
label => ignore(),
|
||||||
|
hoverHelp => ignore(),
|
||||||
|
defaultValue => ignore(),
|
||||||
|
namespace => 'Shop/Credentials',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -372,7 +379,7 @@ my @forms = HTML::Form->parse($html, 'http://www.webgui.org');
|
||||||
is (scalar @forms, 1, 'getEditForm generates just 1 form');
|
is (scalar @forms, 1, 'getEditForm generates just 1 form');
|
||||||
|
|
||||||
my @inputs = $forms[0]->inputs;
|
my @inputs = $forms[0]->inputs;
|
||||||
is (scalar @inputs, 17, 'getEditForm: the form has 17 controls');
|
is (scalar @inputs, 18, 'getEditForm: the form has 18 controls');
|
||||||
|
|
||||||
my @interestingFeatures;
|
my @interestingFeatures;
|
||||||
foreach my $input (@inputs) {
|
foreach my $input (@inputs) {
|
||||||
|
|
@ -452,6 +459,10 @@ cmp_deeply(
|
||||||
name => 'useTestMode',
|
name => 'useTestMode',
|
||||||
type => 'radio',
|
type => 'radio',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name => 'summaryTemplateId',
|
||||||
|
type => 'option',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
'getEditForm made the correct form with all the elements'
|
'getEditForm made the correct form with all the elements'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue